Typo3 - TypoScript: Unterschied zwischen den Versionen
Aus Wikizone
(Constant, Setup, Extension) |
|||
| Zeile 1: | Zeile 1: | ||
| + | |||
| + | == Interne Links == | ||
| + | |||
[[TypoScript - Referenz]] | [[TypoScript - Referenz]] | ||
| Zeile 4: | Zeile 7: | ||
[[TypoScript - globale Variablen]] | [[TypoScript - globale Variablen]] | ||
| + | |||
| + | |||
| + | == Zusammenhang zwischen Constants, Setup, Extension == | ||
| + | |||
| + | Hier wird anhand eines kleinen Beispiels erläutert, wie man Konstanten im Setup verwendet und in der Extension als Variable weiterverwerbeitet. | ||
| + | |||
| + | In Typoscript Constants | ||
| + | |||
| + | #cat=ho_Test; type=string; label=Mein Text | ||
| + | ho_Test.Text1 = Das ist ein Test | ||
| + | |||
| + | In Typoscript Setup | ||
| + | |||
| + | plugin.tx_hoTest_pi1.test1 = {$ho_Test.Text1} | ||
| + | |||
| + | In der Extension in Datei ho_Test/pi1/class.tx_hoTest_pi1.php | ||
| + | |||
| + | $Ergebnis=$conf['test1']; | ||
Version vom 10. Februar 2006, 12:29 Uhr
Interne Links
[TypoScript Referenz von Typo3.net]
TypoScript - globale Variablen
Zusammenhang zwischen Constants, Setup, Extension
Hier wird anhand eines kleinen Beispiels erläutert, wie man Konstanten im Setup verwendet und in der Extension als Variable weiterverwerbeitet.
In Typoscript Constants
#cat=ho_Test; type=string; label=Mein Text ho_Test.Text1 = Das ist ein Test
In Typoscript Setup
plugin.tx_hoTest_pi1.test1 = {$ho_Test.Text1}
In der Extension in Datei ho_Test/pi1/class.tx_hoTest_pi1.php
$Ergebnis=$conf['test1'];