Hier werden die Unterschiede zwischen zwei Versionen der Seite angezeigt.
Beide Seiten, vorherige ÜberarbeitungVorherige ÜberarbeitungNächste Überarbeitung | Vorherige Überarbeitung | ||
typo3:templavoila [2013/12/03 23:26] – admin | typo3:templavoila [2015/12/03 19:32] (aktuell) – Externe Bearbeitung 127.0.0.1 | ||
---|---|---|---|
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 | + | 1. Konstante in Setup(!)-Feld eines normalen TypoScript-Templates |
<code typoscript> | <code typoscript> | ||
# Deutsch | # Deutsch | ||
plugin.tx_templavoila_pi1.TSconst { | plugin.tx_templavoila_pi1.TSconst { | ||
- | test = Deutscher Text | + | inhalt |
} | } | ||
Zeile 12: | Zeile 12: | ||
[globalVar = GP:L = 1] | [globalVar = GP:L = 1] | ||
plugin.tx_templavoila_pi1.TSconst { | plugin.tx_templavoila_pi1.TSconst { | ||
- | test = Englischer Text | + | inhalt |
} | } | ||
[global] | [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 | ||
+ | </ |