Issue Feature Closed

#34381Conditional branch for TSFE:config not working

Gabriel Kaufmann TYPOworx GmbH | NewMedia 02/28/12, 11:31 updated 06/15/15, 10:40

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
@
  1. EXAMPLE 1
  2. Switch for sys_language may be mopre useful sometimes
  3. than using GP:L
    [globalVar = TSFE:config|sys_language_uid = 1]
    … Code for LANG-Setup …
    [end]
  1. EXAMPLE 2
  2. Switch for realURL
    [globalVar = TSFE:config|tx_realurl_enable = 1]
    … Include something if realUrl is enabled …
    [end]
  1. EXAMPLE 3
  2. 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!

@
  1. THIS CORRECTLY RETURNS THE DOKTYPE-STRING
  2. 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.