[TYPO3-english] odd / even classes for every second record
B.Wolf
bw at shs-it.de
Mon Jan 11 16:29:50 CET 2010
Hi there.
I'm using "insert records" to put often used boxes into the right column
of my site. To display them on the page I use the following code:
temp.boxenelemente = CONTENT
temp.boxenelemente {
table = tt_content
select {
where = colPos = 2
orderBy = sorting
}
}
subparts.sidebar< temp.boxenelemente
Now every second box should have a different header-color, so I would
like to wrap the first box-element in a div with the class 'odd' and the
second in a div with the class 'even' - or something like that.
I have no clue how I could achieve this - any help is very welcome.
Thank you very much!
More information about the TYPO3-english
mailing list