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

moosh
 
moosh replied on at Permalink Reply
moosh
little up :)
mesuva replied on at Permalink Best Answer Reply
mesuva
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:
$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.
moosh replied on at Permalink Reply
moosh
Thank you mesuva ! :)

moosh