[TYPO3-english] odd / even classes for every second record

Peter Russ peter.russ at 4many.net
Tue Jan 12 15:03:15 CET 2010


--- Original Nachricht ---
Absender:   JoH asenau
Datum:       12.01.2010 13:02:
[...]
> And another one, that is using optionSplit for the same purpose:
> 
> temp.elemente = COA
> temp.elemente {
>     10 = CONTENT
>     10 {
>         table = tt_content
>         select {
>             where = colPos = 2
>             orderBy = sorting
>         }
>         renderObj < tt_content
>         renderObj.wrap = |###SPLITTER###
>     }
>     stdWrap.split {
>         token = ###SPLITTER###
>         cObjNum = 1 |*| 2 || 3 |*| 4 || 5
>         1.current = 1
>         1.wrap = <div class="first">|</div>
>         2.current = 1
>         2.wrap = <div class="even">|</div>
>         3.current = 1
>         3.wrap = <div class="odd">|</div>
>         4.current = 1
>         4.wrap = <div class="last">|</div>
>         5.current = 1
>     }
> }

Prefered solution for linear display of records.
I love the power of Typoscript and optionsplit ;-)

Peter.

-- 
loans that change lives http://www.kiva.org

_____________________________
uon GbR
http://www.uon.li
http://www.xing.com/profile/Peter_Russ


More information about the TYPO3-english mailing list