[Typo3] conditions but how?
Daniel Doesburg
typo3 at doesburg.biz
Fri Jul 29 16:59:20 CEST 2005
Carlos Rodriguez schreef:
> Hi folks out there...
>
> =)
>
> I have a weird thing to solve.
>
> I have a lib which generates some html for my template.
> When I am on a specific page I want the stuff NOT to be rendered.
>
> But the lower given exaample does not work. As I read in TSref fo
> Conditions we have only <,>,and = but I would need a <>, or a != ( a NOT)
>
>
> [globalVar = GP:id > 411,GP:id < 411]
> [globalVar = GP:id > 83,GP:id < 83]
> [globalVar = GP:id > 84,GP:id < 84]
> [globalVar = GP:id > 107,GP:id < 107]
> [globalVar = GP:id > 431,GP:id < 431]
> lib.printURL = TEXT
> lib.printURL {
> value = ABCDEF
> typolink {
> [ ... typolink definitions ... ]
> }
> }
> [globaVar]
>
>
> I want to have a typoscript construct which sais:
> If page id is not 411,83,84,107,431 then do the following...
>
> Cold somebody help me outta this mess?
>
> Thanks
> Carlos
>
May be this:
[globalVar = GP:id=411,GP:id=83, . . . ]
# do nothing
[else]
lib.printURL etc.
[end]
The close of the condition is [GLOBAL] or [END} not [GlobalVar] AFAIK
Success,
Daniel
More information about the TYPO3-english
mailing list