[TYPO3-english] Getting the UID of a FCE with Typoscript

Rudy Gnodde rgn at windinternet.nl
Fri Mar 18 11:58:49 CET 2011


Hello Morten,

Op 18-3-2011 11:50, Morten Kjems schreef:
> I am setting up a flexible content element that displays a small gallery
> with four images. I am using shadowbox to generate a lightbox effect
> when an image is clicked.
>
> I have defined a field that identifies that the images belong to the
> same gallery.
>
> ATagParams = rel="shadowbox[{field:field_galleryname}]"
>
> But I would rather have the gallery identified by the UID of the FCE.
> This way the gallery and shadowbox effect will work even if the user has
> not entered anything in the galleryname field.
>
> Now how do I do that?
>
> I have tried:
>
> ATagParams = rel="shadowbox[{field:field_uid}]"
>
> But it dos not work
>
> Any suggestions?
>

I haven't tested it, but try the following:

ATagParams = rel="shadowbox[{field:uid}]"

Regards,

Rudy Gnodde
WIND Internet
http://www.windinternet.nl


More information about the TYPO3-english mailing list