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
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 ♦Sep 8, 2017 at 10:12