I'm not sure about the r:if_ancestor_or_self tag, but an alternative would be to use
<r:if_url matches="^/parent/">class="active"</r:if_url> within your menu items. That's what I'm doing. Leon ============================= Leon Miller-Out President & CTO, Singlebrook Technology, Inc l...@singlebrook.com p 607-330-1493 f 607-697-0457 119 S. Cayuga St. - Suite 202 Ithaca, NY 14850 On Tue, Feb 23, 2010 at 12:16 AM, Stuart Henry <stuarthe...@gmail.com>wrote: > Hi all, > > I'm new to RadiantCMS, so my apologies if this has been answered > elsewhere... > > My basic page structure is something like: > > * Home > ** Events > *** Calendar > ** Membership > *** Join > ** Gallery > ** Resources > > I'm using <r:if_ancestor_or_self>...</r:if_ancestor_or_self> within the > primary navigation list (Events | Membership | Gallery | Resources) to > apply > a style to the primary nav items if the current page is a descendent of > that > page. > > The problem is that if_ancestor_or_self seems to be returning true for > sibling links, so if I'm at /events/calendar all of the navigation links > contain the class that is being applied within the > block <r:if_ancestor_or_self>...</r:if_ancestor_or_self>. > > Am I missing something with the use of if_ancestor_or_self? Thanks for any > help, > > -- > Stu > _______________________________________________ > Radiant mailing list > Post: Radiant@radiantcms.org > Search: http://radiantcms.org/mailing-list/search/ > List Site: http://lists.radiantcms.org/mailman/listinfo/radiant > Radiant: http://radiantcms.org > Extensions: http://ext.radiantcms.org > _______________________________________________ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ List Site: http://lists.radiantcms.org/mailman/listinfo/radiant Radiant: http://radiantcms.org Extensions: http://ext.radiantcms.org