Hi Christian,

That's currently not possible with the r:nav tag. For building your
secondary navigation, you'll have to set the r:nav root manually on every
'index' page that needs a subnavigation. I.e.:

/
/about
/products *
/products/lorem
/products/ipsum
/products/dolor
/portfolio *
/portfolio/sexy_client
/portfolio/very_sexy_client
/team/

* = define r:nav here in an inherited page part

If you really want to pass the current page's slug, it could be done fairly
easy, but i suspect that on /product/lorem you actually want to pass
/product/ as root? I don't think it's possible to find that out..

Regards,
Benny

Hello people,
> I have a question about the navigation_tags extension.
> I want to make a subnavigation menu, and I know I can tell it where to
> start
> by inserting to page slug in the root parameter. This works fine for my
> main
> navigation menu which I insert like this:
> <r:nav root="/" include_root="true" depth="1" expand_all="false"
> ids_for_lis="true" />
>
> But I would like this to be dynamic for my submenu. Is there a way to
> insert
> the current page's slug in the root parameter?
>
> --
> Best Regards
>
> Christian Nikolajsen
>
_______________________________________________
Radiant mailing list
Post:   [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

Reply via email to