I have create a custom block using Bean. It have a field collection and that field collection have 8 values. I have create a bean.tpl.php to override block. Now i need to know how can i get that field collection values using loop inside bean.tpl.php file.

1 Answer 1


First you need enable for create tpl name bean.tpl.php call for every bean type.

$conf['theme_debug'] = TRUE;

In this tpl you get $content variable . Please print_r($content) in tpl or install devel module to dmp($content). I suggested you install devel module. After that you can find your field collection

Load field collection like this

Thank you

  • Comments are not for extended discussion; this conversation has been moved to chat.
    – Clive
    Commented Sep 8, 2017 at 10:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.