Wondering how you can customize the markup returned of a rendered file?
Right now, my field (in a view) is rendered like:
<div id="file-28" class="file file-image file-image-jpeg contextual-links-region">
<h2 class="element-invisible"><a href="/file/msvujpg" class="views-ajax-processed-processed">msvu.jpg</a></h2>
<div class="content">
<img typeof="foaf:Image" src="http://localhost/sites/default/files/styles/featured_university/public/msvu.jpg?itok=8s4993Zo" width="352" height="240" alt=""> </div>
</div>
But all I want rendered is:
<img typeof="foaf:Image" src="http://localhost/sites/default/files/styles/featured_university/public/msvu.jpg?itok=8s4993Zo" width="352" height="240" alt="">
How can i take control and get rid of the h2 etc?
Comments
Comment #1
rockitdev commentedSolved with help from display suite. https://drupal.org/node/1934674