[TYPO3-dev] Conditions in Templates

Sebastian Kurfuerst sebastian at garbage-group.de
Sun Jan 1 18:52:45 CET 2006


Hi Elmar,

I hope this is still recent...
There is no API or libary for this. However, I think you might solve it
with some TS:

Example HTML:

 ###PARTA### This is written in one case  ###PARTA### 
 ###PARTB### This is written in another case  ###PARTB### 

Example TS:

[globalVar:TSFE.......=....] # enter any condition you need here
subparts.PARTB = TEXT # this removes the PARTB part - subparts.PARTB >
might work as well
marks.PARTA = TEXT # remove the markers
[else]
subparts.PARTA = TEXT
marks.PARTB = TEXT
[end]


I hope this helps or I am not overlooking anything.

Greets and a happy new year,
Sebastian





More information about the TYPO3-dev mailing list