Autonav Single pages & Selected items
Permalink
Hi,
Is there a way to make an autonav of Single Pages ?
Because, I would like to list all page inside /profile and apply to them a class "nav-selected" if we are on this page.
Thanks
moosh
Is there a way to make an autonav of Single Pages ?
Because, I would like to list all page inside /profile and apply to them a class "nav-selected" if we are on this page.
Thanks
moosh
![moosh](/files/avatars/32851.jpg)
little up :)
Two ways to do this that I can think of. Before doing either, first go to sitemap in the dashboard and check the 'Show System Pages' checkbox (hidden under Options). Leave that setting like that until after you've set up your nav.
First way:
Create a custom template for the autonav, and before the line:
Put in the line:
Then add an autonav block, pick your custom template and you can configure the block to show pages under the profiles page.
A second way to do it is to install the Manual Nav add-on and manually pick the system pages you want.http://www.concrete5.org/marketplace/addons/manual-nav/...
In both cases it should automatically put in the nav-selected class where appropriate.
First way:
Create a custom template for the autonav, and before the line:
$navItems = $controller->getNavItems();
Put in the line:
$controller->displaySystemPages = true;
Then add an autonav block, pick your custom template and you can configure the block to show pages under the profiles page.
A second way to do it is to install the Manual Nav add-on and manually pick the system pages you want.http://www.concrete5.org/marketplace/addons/manual-nav/...
In both cases it should automatically put in the nav-selected class where appropriate.
Thank you mesuva ! :)
moosh
moosh