Drupal 7 field collection "- If I want to use a node theme that has a" field collection ", how do I deal with field separation for customization? It seems that so far only print render ($ content ['field_collection_name']); prints the result. Problem in that I canβt understand how to isolate fields for topics.
I created a node for this purpose - content_type.tpl.php, but now I'm stuck in the water. It would be very appreciated that someone saved my day.
Solved the following:
Some of the links below are really very useful, so look, however, I did something like this - Enter dsm(print_r($variables)); in node for display in my case node--content_type.tpl.php using a collection of fields to find out the necessary arrays and field values ββand then hide, of course.
Then part of the style would look something like this.
<div>class="class-for-label-here">My Desired Label - <span class="my-field-class-here"><?php print render($content['my_desired_field_here']['#items'][0]['value']); ?></span></div>
source share