2010-03-15, 05:50:35
Hi,
I'm discovering GetSimple, and I think I have now found my favorite CMS (really).
But there is something I don't know how to do. :/
I've created a website with pages and subpages. On the navigation, called with get_navigation(return_page_slug()); there are only some pages, but not any subpages. What I want to do is to have a "current" class on the <li> corresponding to a page, even if the viewer is currently on a subpage of this page.
For example, when I am on 'foo/bar', I would like to have the 'foo' button (<li class="foo">) with the class "current" (so, <li class="current foo">), exactly like if I was actually on the page 'foo', and not on the page 'bar', subpage of 'foo'.
Is there a (simple) solution ? I'm not searching for a multi-lever navigation (I found this tutorial), but for the same default simple navigation, with a consideration of subpages.
Thanks a lot
Nicolas.
I'm discovering GetSimple, and I think I have now found my favorite CMS (really).
But there is something I don't know how to do. :/
I've created a website with pages and subpages. On the navigation, called with get_navigation(return_page_slug()); there are only some pages, but not any subpages. What I want to do is to have a "current" class on the <li> corresponding to a page, even if the viewer is currently on a subpage of this page.
For example, when I am on 'foo/bar', I would like to have the 'foo' button (<li class="foo">) with the class "current" (so, <li class="current foo">), exactly like if I was actually on the page 'foo', and not on the page 'bar', subpage of 'foo'.
Is there a (simple) solution ? I'm not searching for a multi-lever navigation (I found this tutorial), but for the same default simple navigation, with a consideration of subpages.
Thanks a lot
Nicolas.