Re: [Radiant] how to set a custom div tag on the last child

2008-10-20 Thread Sean Cribbs
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

Re: [Radiant] how to set a custom div tag on the last child

2008-10-20 Thread Joost de Niet
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