In my page.tpl.php I'm doing this to display one of my view:
print views_embed_view('teaserview', 'default'); That gives me the following html output:
<span thmr="thmr_10"> <div class="view view-teaserview view-id-teaserview view-display-id-default view-dom-id-e051ba535ce9aac6cd9a0d564b3dbb29 contextual-links-region"> <div class="contextual-links-wrapper"> <span thmr="thmr_16"> <ul class="contextual-links"> <li class="views-ui-edit first last"><span thmr="thmr_17"><a href="/kbi/admin/structure/views/view/teaserview/edit/default?destination=node/3">Edit view</a></span></li> </ul> </span> </div> <div class="view-content"> <span thmr="thmr_15"> <div class="views-row views-row-1 views-row-odd views-row-first views-row-last"> <span thmr="thmr_14"> <span thmr="thmr_11"><span thmr="thmr_12"><span thmr="thmr_13"><img src="http://127.0.0.1/kbi/sites/default/files/teaser_2.jpg" width="1029" height="308" alt="" /></span></span></span></span> </div> </span> </div> </div> </span> But the only thing that I really need is
<img src="http://127.0.0.1/kbi/sites/default/files/teaser_2.jpg" width="1029" height="308" alt="" /> Is there a possibility to modify the views_embed_view call so that I get only the needed data?
There would be the possibility to modify all the views .tpl.php files but I hope there's an easier way to do this.
I also read about the semantic views module but I didn't understand how to configure my view with it so that i get only the needed markup as output. it didn't seem to have any effect.