1

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

0

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

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

Your Answer

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

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