[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[TYPO3-dev] Conditions in Templates


  • From: sebastian at garbage-group.de (Sebastian Kurfuerst)
  • Date: Sun, 01 Jan 2006 18:52:45 +0100

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