[TYPO3-ttnews] Wrapping linked images in list view

Thomas "Thasmo" Deinhamer thasmo at gmail.com
Tue Oct 5 01:16:07 CEST 2010


Hello folks!

Is such a markup possible somehow?

<p class="images">
	<a href="/path/to/large/version1.jpg">
		<img src="/path/to/small/version1.jpg" alt="" />
	</a><br />
	
	<a href="/path/to/large/version2.jpg">
		<img src="/path/to/small/version2.jpg" alt="" />
	</a><br />
	
	<a href="/path/to/large/version3.jpg">
		<img src="/path/to/small/version3.jpg" alt="" />
	</a>
</p>

The main problem at present is, that the link, which should be wrapped 
around the images, is hardcoded in the HTML template - thus it's not 
possible to 1.) wrap each image inside a link and 2.) make the <p> 
wrapper only appear if at least one image is available.

Any ideas?

Thanks a lot,
Thomas


More information about the TYPO3-project-tt-news mailing list