If you know the length of the number of children, this is simple to do.
Say your root page has 5 children. I'd change your snippet to look like
this:
r:find url=/
ul
r:children:each limit=4
lir:link //li
/r:children:each
r:children:lastli class=lastr:link //li/r:children:last
/ul
Thank for this tip Sean!
I used the jquery equivalent ...
$(ul.menu li:last).addClass(last);
Cheers,
Joost
On 20 okt 2008, at 21:29, Sean Cribbs wrote:
If you know the length of the number of children, this is simple to
do. Say your root page has 5 children. I'd change your snippet to