[TYPO3] "Condition AND Condition" in TypoScript
Tim Riemenschneider
lists-05 at tim-riemenschneider.de
Thu Feb 16 15:16:16 CET 2006
Peter Niederlag schrieb:
> Hi,
>
> Joerg Wagner - DigiLog multimedia schrieb:
>
>>Hi folks,
>>
>>I am currently struggeling with conditions in TypoScript.
>>Is it still true (even in Typo3 4.0) that conditions can not be ANDed? This
>>is quite astonishing regarding the very high overall level of T3.
>
>
> IIRC an appropriate patch has been submitted in the Code that will soon
> surface as TYPO3 Version 4.0. ;)
In the meantime here is a workaround I used once:
To express something like:
[cond1 AND cond2]
some.property = value
[global]
use this:
-------
temp.var1 >
[cond1]
temp.var1 = the value
[cond2]
some.property < temp.var1
[global]
-------
However this gets ugly with more than 2 conditions:
-------
temp.var1 >
temp.var2 >
temp.var3 >
temp.var4 >
[cond1]
temp.var1 = the value
[cond2]
temp.var2 < temp.var1
[cond3]
temp.var3 < temp.var2
[cond4]
temp.var4 < temp.var3
[cond5]
some.property < temp.var4
[global]
-------
cu
Tim
More information about the TYPO3-english
mailing list