[Typo3-german] Verschachtelte Conditionals?

Dirk typo3user at gmx.net
Wed Nov 16 11:45:54 CET 2005


>Ungetest, hilft aber vielleicht weiter:
>
>[loginUser = *]
>temp.L0 ....
>temp.L1 ....
>temp.L2 ....
>[else]
>temp.L0 ....
>temp.L1 ....
>temp.L2 ....
>[end]
>
>
>[globalVar = GP:L < 1]
>lib.theobject < temp.L0
>[end]
>
>
>[globalVar = GP:L = 1]
>lib.theobject < temp.L1
>[end]
>
>[globalVar = GP:L = 2]
>lib.theobject < temp.L1
>[end]

Ausgezeichnet! :)

Es sieht nun so aus, funktioniert fabelhaft und ist recht übersichtlich anzuschauen und zu erweitern:
[loginUser = *]
temp.curlogin_L0 < temp.loggedin_L0
temp.curlogin_L1 < temp.loggedin_L1
temp.curlogin_L2 < temp.loggedin_L2
[else]
temp.curlogin_L0 < temp.notloggedin_L0
temp.curlogin_L1 < temp.notloggedin_L1
temp.curlogin_L2 < temp.notloggedin_L2
[end]
lib.login < temp.curlogin_L0
[globalVar = GP:L = 1]
lib.theobject < temp.curlogin_L1
[end]
[globalVar = GP:L = 2]
lib.theobject < temp.curlogin_L2
[end]

Bringt es (Geschwindigkeit-)Vorteile den L0 Fall ebenfalls in ein Conditional zu setzen?
[globalVar = GP:L = 0]
lib.login < temp.curlogin_L0
[end]
[globalVar = GP:L = 1]
lib.theobject < temp.curlogin_L1
[end]
[globalVar = GP:L = 2]
lib.theobject < temp.curlogin_L2
[end]

Danke nochmal :)








More information about the TYPO3-german mailing list