[Radiant] Zebra striping using <r:children:each>?

Nathan Donaldson scarydog at mac.com
Tue Oct 17 20:57:59 CDT 2006


Thanks John,

I've come up with something. Nice or not I'll let you decide :-)

Open to suggestions for changing names of tags.

It's simplicity itself at the moment,

<r:children:each order="desc" reset_cycle="false"> to carry on from the 
last row otherwise it will reset to zero so that the first row is "odd"

<r:cycle_row /> to output "even" or "odd"

I hope this make sense and is useful to someone.

Regards
Nathan

-- 
Posted via http://www.ruby-forum.com/.



More information about the Radiant mailing list