autonav displaying certain pages
Permalink
I currently work on a small concrete5 site.http://www.werkzeugservice.ch/work/...
The site contains a functional navigation with side pages like "contact", or "situation plan".
For now I put this pages under a separated folder called "top navigation", and set autonav to show only pages under this folder. The downside is that the url in the browser is looking like that:http://www.werkzeugservice.ch/work/index.php/top_navigation/kontakt...
Is there a better way to deal with this?
cheers
André
The site contains a functional navigation with side pages like "contact", or "situation plan".
For now I put this pages under a separated folder called "top navigation", and set autonav to show only pages under this folder. The downside is that the url in the browser is looking like that:http://www.werkzeugservice.ch/work/index.php/top_navigation/kontakt...
Is there a better way to deal with this?
cheers
André
cheers Remo for the zoom image block! :)
yes, put the pages back into the tree where it makes sense for em, and use the exclude_from_nav custom attribute (set in page properties) to manage what shows up in an autonav
Not sure if you understood me right.. actually there are two autonav's allready. "main" and "functional navigation". They both needs to display different pages.
that's different then...
whelp in cases like that i would sometimes make the primary nav a content block managed through the page type defaults - then you dont have to worry about it changing without you intending it to.
whelp in cases like that i would sometimes make the primary nav a content block managed through the page type defaults - then you dont have to worry about it changing without you intending it to.
What I did is I added two Page Attributes (exclude_mainNavigation and exclude_topNavigation) and changed the block templates for both autonav's on line 12 to:
...
if (!$_c->getCollectionAttributeValue('exclude_nav') && !$_c->getCollectionAttributeValue('exclude_topNavigation') ) {...
(of course with the different Page Attributes handlers.)
This way its possible to choose what is displayed where, even if the page should be visible in both navigations.
...
if (!$_c->getCollectionAttributeValue('exclude_nav') && !$_c->getCollectionAttributeValue('exclude_topNavigation') ) {...
(of course with the different Page Attributes handlers.)
This way its possible to choose what is displayed where, even if the page should be visible in both navigations.
I had the exact same issue, this is a much cleaner method. thanks!