# Alternate list

**URL:** <https://www.ruby-forum.com/t/alternate-list/90989>\
**Category:** Radiant CMS\
**Created:** [April 3, 2007, 5:01pm UTC](https://www.ruby-forum.com/t/alternate-list/90989 "2007-04-03T17:01:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Francesco\_L](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/c2a13f/32.png) [@Francesco\_L](https://www.ruby-forum.com/u/Francesco_L)\
**Post date:** [April 3, 2007, 5:01pm UTC](https://www.ruby-forum.com/t/alternate-list/90989/1 "2007-04-03T17:01:30Z")

</div>

Hello to everybody,  
I am new to this list, I am starting ti develop web sites using Radiant  
0.5.2 and I have one question.  
I need to create a list of articles using two alternate styles for odd  
or even members of the list.  
I mean something like this:

Post 1

Post 2

Post 3
... Using children:each I got all posts with the same style, I tried to create a children\_alternate tag, but I think I haven't understood how radius tags works. I created a each\_odd and a each\_even tag, but using them I get all even post grouped together and all even posts grouped together not in alternate style. Is there a way to obtain what I need? If I am not wrong radius computes the block passed to it and give back the result and the block is the code between for example the open and the close "children:each" tag. Is it right? So it should be better to pass some option to each to obtain an alternate style... or not?

Thanks in advance

–  
Francesco L.  
Ymir s.r.l.  
Viale Verona 190/11  
38100 Trento

---

<div class="post-metadata">

**Author:** ![Francesco\_L](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/c2a13f/32.png) [@Francesco\_L](https://www.ruby-forum.com/u/Francesco_L)\
**Post date:** [April 3, 2007, 5:24pm UTC](https://www.ruby-forum.com/t/alternate-list/90989/2 "2007-04-03T17:24:32Z")

</div>

0.6/Mental has the \<r:cycle /\> tag. It could easily be backported to  
0.5.2 as it doesn’t use anything special in 0.6/Mental.

Sean
