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 look like this:

<r:find url="/">
<ul>
<r:children:each limit="4">
  <li><r:link /></li>
</r:children:each>
<r:children:last><li class="last"><r:link /></li></r:children:last>
</ul>
</r:find>

Otherwise, this is pretty simple to do with Prototype (give the <ul> an ID like 'menu' or something):

$('menu').select('li').last().addClassName('last');

Sean

Joost de Niet wrote:
Hi,

I Have a list as follows:

<r:find url="/">

<ul>
   <r:children:each>
     <li><r:link /></li>
   </r:children:each>
</ul>

</r:find>

Now on the last found child I want to specify a custom css DIV tag.
How to do this ?

Thanks for your help,

Joost
_______________________________________________
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


_______________________________________________
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

_______________________________________________
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

Reply via email to