Hier werden die Unterschiede zwischen zwei Versionen der Seite angezeigt.
| Nächste Überarbeitung | Vorherige Überarbeitung | ||
| typo3:templavoila [2013/12/03 23:24] – angelegt admin | typo3:templavoila [2013/12/06 21:53] (aktuell) – admin | ||
|---|---|---|---|
| Zeile 1: | Zeile 1: | ||
| ===== Mehrsprachige Inhalte in TemplaVoilà mit Konstanten ===== | ===== Mehrsprachige Inhalte in TemplaVoilà mit Konstanten ===== | ||
| - | '' | + | Die Condition |
| + | 1. Konstante in Setup(!)-Feld eines normalen TypoScript-Templates anlegen: | ||
| + | <code typoscript> | ||
| + | # Deutsch | ||
| + | plugin.tx_templavoila_pi1.TSconst { | ||
| + | inhalt = Deutscher Text | ||
| + | } | ||
| + | # Englisch | ||
| + | [globalVar = GP:L = 1] | ||
| + | plugin.tx_templavoila_pi1.TSconst { | ||
| + | inhalt = Englischer Text | ||
| + | } | ||
| + | [global] | ||
| + | </ | ||
| + | |||
| + | 2. Im FCE unter Konfiguration/ | ||
| + | <code typoscript> | ||
| + | 10 = TEXT | ||
| + | 10.value = {$TSconst.inhalt} | ||
| + | </ | ||
| + | |||
| + | <WRAP tip> | ||
| + | Mögliche Fehlerquellen, | ||
| + | * Bei der Konstante fehlt das '' | ||
| + | * Das Typoscript aus Punkt 1 wurde nicht im Setup-Feld, sondern unter Constants eingetragen | ||
| + | </ | ||