Hi,

Bit confused about this - i'm trying to override the template for a relevant content bean, which i expected would be possible in bean.tpl.php like regular beans.

However, inspecting the markup when viewing the bean, it appears that bean.tpl.php is being used but the content is empty (just an empty wrapper div), with the bean content output immediately below the bean.tpl markup.

This seems like bug? I could not find what is actually it outputting the bean content - it was "just there" in the page render array (you can see it in a hook_page_alter())

Cheers

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

rrbambrey’s picture

Version: 7.x-1.2 » 7.x-1.x-dev
Status: Active » Needs review
FileSize
751 bytes

Looks to me as if the problem stems from the fact the bean content is being indexed incorrectly when being injected into the object. e.g.

$content['bean'][$bean->bid]['bean_relevant']['content'] = $items;

whereas beans are standardly structured to use delta not bid i.e.

$content['bean'][$bean->delta]['bean_relevant']['content'] = $items;

patch against dev attached

bleedev’s picture

Issue summary: View changes
Status: Needs review » Fixed

Fixed in an earlier commit.

Status: Fixed » Closed (fixed)

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