[Typo3] Condition in Typoscript - Check for value of a constant
Matthias Taugwalder
matthias.taugwalder at bluewin.ch
Sat Aug 20 09:42:49 CEST 2005
Hi all
I have a small problem with a condition in the setup section of a template.
What I want is having different template files (using css_styled_content)
which are loaded depending on a constant in an extension template. That
means, depending whether this constant is set or not it should appear a
different template.
E.g. the template structure would be
# Root-Template, Setup
...
[{$myPlugin.var1}]
temp.template = FILE
temp.template.file = file1.html
[else]
temp.template = FILE
temp.template.file = file2.html
[end]
...
# Extension template of a child page, where file1 should appear
# constant field
...
myPlugin.var1 = value1
...
# Extension template of a child page, where file2 should appear
# constant field
...
myPlugin.var1 =
...
Everything else (including rootlines, menus...) works without any problem.
Even passing the constants to my extension works. So it seems it has to be a
syntax problem.
Any hints or clues?
Thanks in advance & best regards,
Matthias Taugwalder
---
Matthias Taugwalder
matthias.taugwalder at bluewin.ch
More information about the TYPO3-english
mailing list