Thanks Sean, It was my mistake, I was inside of a if_self tag and didn't realize it so I was under the impression that the slug was only working for the current page.
On Fri, May 22, 2009 at 9:58 AM, Sean Cribbs <[email protected]> wrote: > Dan, > > You can get the title/slug of any page! <r:children:each> switches the > "current page" to the child while iterating, so you can use the slug for the > id like so: > > <li id="<r:slug />"> > > Sean > > Dan Shields wrote: > >> lets say i have something like the following. >> How could I get the page slug/title of the children to be used as ids on >> the >> li tags? Are there ways to get attributes of child page? >> >> <r:children:each> >> <li> >> <r:link /> >> <r:if_children> >> <ul> >> <r:children:each> >> <li> >> <r:link /> >> </li> >> </r:children:each> >> </ul> >> </r:if_children> >> </li> >> </r:children:each> >> </ul> >> _______________________________________________ >> Radiant mailing list >> Post: [email protected] >> Search: http://radiantcms.org/mailing-list/search/ >> Site: http://lists.radiantcms.org/mailman/listinfo/radiant >> >> >> > > _______________________________________________ > Radiant mailing list > Post: [email protected] > Search: http://radiantcms.org/mailing-list/search/ > Site: http://lists.radiantcms.org/mailman/listinfo/radiant > _______________________________________________ Radiant mailing list Post: [email protected] Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
