Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-10-19 16:56:12

Distrahera
Member
Registered: 2008-09-20
Posts: 30

Odd / Even class

Hi!
I have been searching for a way to implement odd and even classes to iterated elements, such as table rows (zebra stripes) or for every item in an article list for example. I found this: http://awasteofwords.com/article/fun-with-zebras-and-textpattern-407 But its only supported by txp 4.0.7 and I have 4.0.6.

Is there currently a good way to iterate a odd and even class to elements from an article list?

Thanks!

Offline

#2 2008-10-19 17:31:22

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: Odd / Even class

Try zem_nth.

Offline

Board footer

Powered by FluxBB