Patrick,

Try <r:if_ancestor_or_self>. It will render its contained block if the current local page is the same as or a parent of the rendered page.

Sean

Patrick wrote:
Hi,



I would like to mark the active menu item in a navigation and
tried something like:

<li <r:if_url matches="/<r:slug/>.*">class="active"</r:if_url> >

but this works only if I hardcode the url it should match, like:

   ...   matches="/about">


how can this be done generally for all menu items?

any hints for this?

Thanks

Patrick


_______________________________________________
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