[Typo3] TemplaVoila - Sections with different Layout/Color

Martin Siedl martin at siedl.at
Mon May 23 00:49:32 CEST 2005


hello list !

for all templavoila-geeks out there here comes a question:

with templavoila sections (and containers) i am building a simple list - 
just like a table where the editor can then place new rows.
in fact i use this to place little teaser-boxes one after the other.

the screendesign dictates that the rows got to have different background 
colors ( ... and YES ... we all like alternating backgrounds) - but can 
this be done with tv-sections ?

i thought about creating 2 different containers wich are mapped to two 
slightly differnet rows in the html-template but by this way the editor
has to pick the color by hand and everything gets scrambled when he 
rearanges the list by moving some rows up or down.

so ... is there a way to set the bgcolor/layout of such a container by 
logic depending on the index in a templavoila-section ??

best regards & thanks for helping
martin



More information about the TYPO3-english mailing list