#34381Conditional branch for TSFE:config not working
Description
This is feature request for having the possibility to make TS-Conditionals for TSFE:config.
Please also see BugTrack #14665 (reported as “Bug” there) also shows the need for this feature.
Example Code@
- EXAMPLE 1
- Switch for sys_language may be mopre useful sometimes
- than using GP:L
[globalVar = TSFE:config|sys_language_uid = 1]
… Code for LANG-Setup …
[end]
- EXAMPLE 2
- Switch for realURL
[globalVar = TSFE:config|tx_realurl_enable = 1]
… Include something if realUrl is enabled …
[end]
- EXAMPLE 3
- Custom Switch…
[globalVar = TSFE:config|tx_myscript_enable = 1]
page.includeJS.myScript = …
[end]
@
I think this feature would be worth implementing it.
Please note that the following code works!
- THIS CORRECTLY RETURNS THE DOKTYPE-STRING
- SET in TS:config.doctype
config.doctype = xhtml_trans
page = PAGE
page.10 = TEXT
page.10.data = TSFE:config|config|doctype
@
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.