[TYPO3-english] [6.2.5] How to? condition with string comparision of a constant (in page setup typoscript)
Patrick Bierans
patrick at bierans.de
Wed Oct 15 12:23:04 CEST 2014
Hello Community!
After years in typo3 4.6 I decided to look at a fresh new 6.2.5.
Right now I think I missed something and wanted to ask you.
My constant for the root page (web > template) is:
# cat = basic/presets; type = options[dev,stage,prod]; label = enviroment preset
config.preset = dev
~
Based on the constant I want to change the page setup:
# to see the constant in the typo script object browser:
config.preset = {$config.preset}
# this has to change now:
config.presettest = idontknow
# How do I have to write this condition so it works?
[globalString = {$config.preset} = dev]
config.presettest = devenv
[global]
~
I tried different interations with globalVar and LIT:
and switched the operants but something seems wrong in general.
What am I missing?
TIA!
Patrick
More information about the TYPO3-english
mailing list