[TYPO3] adding a div around every content image

Nico Potvin nico.potvin at kandesign.com
Thu Nov 9 13:40:06 CET 2006


thanks,

i will give this a try, but indeed i need to use the optionsplit method 
for this.

greets

nico
On 09 Nov 2006, at 00:46, Loek Hilgersom wrote:

> Sorry, wrote that other answer a bit too fast, not realising that you 
> probably
> want all images in the same content element.
> With css styled content the individual images are already wrapped 
> (standard with
> dl/dt tags, but you can change to div if needed).
>
> You can change the image wrapping:
>
> tt_content.image.20.rendering.dl {
> 	oneImageStdWrap.dataWrap = <dl csc-textpic-image###CLASSES###"
> style="width:{register:imagespace}px;"> | </dl>
> 	imgTagStdWrap.wrap = <dt> | </dt>
> }
>
> or set the renderMethod to div and add your tag:
>
> tt_content.image.20.renderMethod = div
> tt_content.image.20.rendering.div.imgTagStdWrap.wrap = <div 
> class="dontshow"> |
> </div>
>
> I'm afraid the optionsplit won't work here (but maybe someone knows 
> how to get
> that done)
>
> Hth,
> Loek
>
> Nico Potvin wrote:
>> Hi,
>>
>> i have the following problem
>>
>> 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?
>>
>> greets
>>
>> nico
>> -- 
>> Nico Potvin
>>
>> KAN Design
>> Antwerpen - Belgium
>> Phone: +32 (0)3 203 41 69
>> Fax: +32 (0)3 225 14 05
>> E-mail: nico.potvin at kandesign.com
>> http://www.kandesign.com
>>
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>
--
Nico Potvin

KAN Design
Antwerpen - Belgium
Phone: +32 (0)3 203 41 69
Fax: +32 (0)3 225 14 05
E-mail: nico.potvin at kandesign.com
http://www.kandesign.com




More information about the TYPO3-english mailing list