If you add multiple view modes to a block type, you can choose your view mode when adding/editing a block of that block type.

Problem is that on the view page of that block the content is always rendered with view mode 'default' instead of the selected view mode.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

brahimmouhamou’s picture

Issue summary: View changes
wiipiiw’s picture

Subscribing

kyletaylored’s picture

Version: 7.x-1.8 » 7.x-1.x-dev
Status: Active » Needs review
FileSize
459 bytes

This is another issue I've been having regarding view modes, went ahead and wrote a patch as well.

Problem
When viewing the default block view page, the view mode selected is not being rendered and instead - always reverts to "Default".

Solution
Grab view mode from Bean object, supply it as an argument. If no view mode is available, fall back to default.

kyletaylored’s picture

Title: Selected view mode isn't used on the view page of that Bean block » Render block view page using selected view mode
joelpittet’s picture

Status: Needs review » Reviewed & tested by the community

That seems very reasonable, thanks for the patch.

DamienMcKenna’s picture

Status: Reviewed & tested by the community » Fixed
Parent issue: » #2840282: Plan for Bean 7.x-1.12 release

Committed. Thanks all!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.