Project

General

Profile

Actions

Feature #34381

closed

Conditional branch for TSFE:config not working

Added by Gabriel Kaufmann / Typoworx NewMedia over 12 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2005-04-13
Due date:
% Done:

0%

Estimated time:
PHP Version:
5.3
Tags:
Complexity:
Sprint Focus:

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
@

Actions

Also available in: Atom PDF