[TYPO3] adding a div around every content image
Loek Hilgersom
hilgersom at xs4all.nl
Wed Nov 8 20:40:05 CET 2006
Some suggestions: you can wrap all content in a column:
styles.content.get.wrap = <test> | </test>
Or wrap each content item separately:
tt_content.stdWrap.dataWrap = <div class="...">|</div>
Probably you can use this last option with optionSplit (see tsref) to wrap only
the second to last. I haven't tested it, but you could try something like this:
tt_content.stdWrap.dataWrap = <div class="first"> || <div class="rest"> | </div>
Or even simpler:
tt_content.stdWrap.dataWrap = || <div class="rest"> | </div>
Loek
Nico Potvin wrote:
> I use image lightbox to show images on a site, but i only want to show
> the first one on the page, and the rest is hidden.
> You can see the rest of the images when you click on the first one.
>
> is there any way to add a certain <div id="dontshow"></div> around
> every image with typoscript. or even better, only around the second to
> the last image?
More information about the TYPO3-english
mailing list