Zum Inhalt springen

conditions problem

Erstellt am 21. Januar 2007 · 1 Antwort · letzte Antwort am 21. Januar 2007

Tags: Frage

stoun ·

Hallo zusammen,

ich habe auf Home-Seite eine Begrüssung eingebaut.
Es soll nur auf dieser Seite angezeigt werden.
Also

[PIDinRootline = 1]
temp.topwillkommen.value = <h1>Wilkommen</h1>
[GLOBAL]

Jetzt hätte ich gerne, dass die englische Seite anderes aussieht (logisch 🙂

[globalVar = GP:L=1]
temp.topwillkommen.value = <h1>Welcome</h1>
[GLOBAL]

Wenn ich versuche es zusammen zu schreiben, geht nicht.

Ich habe folgende Varianten probiert

[PIDinRootline = 1]
temp.topwillkommen.value = <h1>Wilkommen</h1>
[GLOBAL]
[PIDinRootline = 1]&&[globalVar = GP:L=1]
temp.topwillkommen.value = <h1>Welcome</h1>
[GLOBAL]

oder so

[PIDinRootline = 1]
temp.topwillkommen.value = <h1>Wilkommen</h1>
[GLOBAL]
[PIDinRootline = 1][globalVar = GP:L=1]
temp.topwillkommen.value = <h1>Welcome</h1>
[GLOBAL]

oder so

[PIDinRootline = 1]
temp.topwillkommen.value = <h1>Wilkommen</h1>
[END]
[globalVar = GP:L=1]
temp.topwillkommen.value = <h1>Welcome</h1>
[GLOBAL]

alles funktioniert nicht richtig.
Wie macht man das?

Danke!

stoun ·

habe die Lösung gefunden.

In Typo3 3.8. finktioniert && nicht.
Dafür gibt es aber eine Extention: Extended TS Conditions

Dann funktioniert es richtig

[PIDinRootline = 1]
temp.topwillkommen.value = <h1>Wilkommen</h1>
[GLOBAL]
[PIDinRootline = 1]&&[globalVar = GP:L=1]
temp.topwillkommen.value = <h1>Welcome</h1>
[GLOBAL]

In Typo3 4 soll es ohne weiteres funktionieren.