title: Drupal 7 access field collection data in views
body: <p>I have a <strong>field collection</strong> called <code>field_logo_logos</code>.</p>
  
  <p>There are 2 fields within:</p>
  
  <p><code>field_logo_image</code> and <code>field_logo_link</code></p>
  
  <p>In views I can get the data and it comes out like this:</p>
  
  <pre><code>&lt;div typeof="" about="/field-collection/field-logo-logos/24" class="entity entity-field-collection-item field-collection-item-field-logo-logos clearfix"&gt;
    &lt;div class="content"&gt;
      &lt;div class="field field-name-field-logo-image field-type-image field-label-hidden view-mode-full"&gt;
        &lt;div class="field-items"&gt;
          &lt;figure class="clearfix field-item even"&gt;&lt;img width="222" height="57" title="title" alt="alttag" src="http://link/to/my/image.png?itok=1wgQypF6" class="image-style-footer-logo" typeof="foaf:Image"&gt;&lt;/figure&gt;
        &lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="field field-name-field-logo-link field-type-link-field field-label-hidden view-mode-full"&gt;
        &lt;div class="field-items"&gt;
          &lt;div class="field-item even"&gt;http://www.mylink.com/&lt;/div&gt;
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>but how do I override this so I can change it to be like this:</p>
  
  <pre><code>&lt;div class="footer-logo"&gt;
      &lt;a href="http://www.mylink.com/" target="_blank"&gt;
          &lt;img width="222" height="57" title="title" alt="alttag" src="http://link/to/my/image.png?itok=1wgQypF6" class="image-style-footer-logo" typeof="foaf:Image"&gt;
      &lt;/a&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I know how to do this with ordinary fields with tokens within views or in a template override but field collections seem to work differently.</p>
  
  <p>Any advise will be very much appreciated.</p>
  
  <p>C</p>