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: [email protected]
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

Reply via email to