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