title: theming "field collection" in node pages drupal 7
body: <p>Drupal 7 "field collection" - If I want to theme a node page which has a "field collection", how do I go about separating the fields for customization? It seems thus far that only print render($content['field_collection_name']); outputs the result. The problem is that I can't figure out how to isolate the fields for theming. </p>
  
  <p>I've created a node--content_type.tpl.php for this purpose but now stuck dead in the water. Would really appreciate someone saving the day for me.</p>
  
  <p><strong>Solved as follows:</strong></p>
  
  <p>Some of the links from below are really very helpful so do look, though, I've done something like this - 
  Enter <code>dsm(print_r($variables));</code>on node to be rendered in my case <code>node--content_type.tpl.php</code> with field collection to find out the arrays and field values needed, then hide of course.</p>
  
  <p>The styling part then would look something like this</p>
  
  <p><code>&lt;div&gt;class="class-for-label-here"&gt;My Desired Label - &lt;span class="my-field-class-here"&gt;&lt;?php print render($content['my_desired_field_here']['#items'][0]['value']); ?&gt;&lt;/span&gt;&lt;/div&gt;</code></p>