[TYPO3-english] Using IF in TypoScript
Redvald Hjulstad
redvald at hjulstad.no
Sat Jul 11 20:42:12 CEST 2009
I have now tried lib.image.if.isTrue.data = {page:media}
in every way I can think of, but get the same results as before...
red
On 2009-07-10 15:08:39 +0200, Peter Klein <peter at umloud.dk> said:
> Hi Redvald.
>
> ALWAYS look in TSRef. If you look at the IMAGE object, then there's no
> "if" property inside the "file"property, where you have placed your
> "if".
>
> Looking at TSRef for the IMAGE object, you can see that there's an
> "if" property on the toplevel of the object.
>
> So you should be able to do something like:
>
> lib.image.if.isTrue.data = {page:media}
>
>
> Note that you need to use "data" and not "field" if you try accessing
> vars outside the local scope.
More information about the TYPO3-english
mailing list