Main page has always nav-path-selected
Permalink 2 users found helpful
I think most of us use sitemap like this.
Main page
+ Page 1
+ Page 2
+- Page 2.1
+- Page 2.2
+ Page 3
By using auto-nav, the Main page get's the "nav-path-selected" class for li and a, no matter what is the current page. In some cases that's ok, but most of time Main Page and it's child elements should be at the same level.
If I exclude the root from everywhere and Page 1 would be my new Main page, users get the root page anyway by coming to my domain's root. I'm C5 newbie and not sure if I miss some very basic things with auto-nav and site structure here.
Main page
+ Page 1
+ Page 2
+- Page 2.1
+- Page 2.2
+ Page 3
By using auto-nav, the Main page get's the "nav-path-selected" class for li and a, no matter what is the current page. In some cases that's ok, but most of time Main Page and it's child elements should be at the same level.
If I exclude the root from everywhere and Page 1 would be my new Main page, users get the root page anyway by coming to my domain's root. I'm C5 newbie and not sure if I miss some very basic things with auto-nav and site structure here.
Nice, thanks for you and C5! I changed to "Header Menu" template and that fixed the problem.
* EDIT *
Well, now the navigation is flat, so there are no separate uls or even classes for subpages. So...should I make my own template or what?
* EDIT *
Well, now the navigation is flat, so there are no separate uls or even classes for subpages. So...should I make my own template or what?
Very helpful, thank you!
Thanks, that helped me out too ;)
A better solution (which doen't force you to have a single-level menu) is this:
http://www.concrete5.org/community/forums/customizing_c5/autonav-pr...
(I've also included this fix in the free Autonav Exclude Subpages addon which fixes some other quirky autonav behaviour as well):
http://www.concrete5.org/marketplace/addons/autonav-exclude-subpage...
http://www.concrete5.org/community/forums/customizing_c5/autonav-pr...
(I've also included this fix in the free Autonav Exclude Subpages addon which fixes some other quirky autonav behaviour as well):
http://www.concrete5.org/marketplace/addons/autonav-exclude-subpage...
Try clicking on the auto-nav block, then selecting custom template. I think there is a "header nav" template that works well