[TYPO3] how to get the current image nr processed

Peter Klein peter at umloud.dk
Thu May 22 23:58:30 CEST 2008


Hi Ronald.
The current image number is stored in a register value, so you can access it 
like this:

data = register : IMAGE_NUM_CURRENT

You can take a look at yhe TS of one of my ext. if you want to see an 
example on how to use it.
http://typo3.org/extensions/repository/view/pmkslimbox/2.2.0/

The TS uses the register value to find the correct link, not caption. But 
the method should be similar.

--
Peter Klein

"Ronald Renfro" <rr at dreimorgen.com> wrote in message 
news:mailman.2186.1211387465.4573.typo3-english at lists.netfielders.de...
> Hi
>
> I would like to display an enlarged image (css hover) similar to 
> "t3w_hoverbox" but I would like to also display a caption underneath  the 
> zoomed image. The caption for the images are in the caption field.  How 
> can I determine which item is being processed so that I can get  the 
> appropriate item from the caption field?
>
> Thanks!
> Ronald Renfro
>
> Current TS:
>
> tt_content.image.20.border>
> tt_content.image.20.border=1
> tt_content.image.20.1.imageLinkWrap =0
> tt_content.image.20.1.imageLinkWrap>
> tt_content.image.20.1.stdWrap.innerWrap=<a href="#"><div 
> class="preview"><img src="{current:1}" /><br>Lorem Ipsum Dolores 
> {field:imagecaption}</div>|</a>
> tt_content.image.20.1.stdWrap.innerWrap.insertData=1
>
> 




More information about the TYPO3-english mailing list