I have a page on a site I'm working on called 'Brands' and under that I have about 17 different brand pages.
On the site, I want to have a brand menu. If it were rendered ala autonav that would be fantastic.
So it looks kind of like:
Home
- Brands
--- Foo
--- Bar
--- Baz
And I want to render a menu for:
<ul>
<li>Foo</li>
<li>Bar</li>
<li>Baz</li>
<ul>
It doesn't look like autonav can start on a second level. Any ideas for work arounds?
how do the autonav level options work?
Nov 13, 2008 at 3:16 PM
These options are definitely confusing at best.
It should also be known that 'Brands' is hidden from the nav but its children aren't.
I am able to create a menu that displays every page including the individual brand pages, but I can't seem to create one that just displays the brands, no matter what combination I try.
It should also be known that 'Brands' is hidden from the nav but its children aren't.
I am able to create a menu that displays every page including the individual brand pages, but I can't seem to create one that just displays the brands, no matter what combination I try.
Sub menus
Nov 18, 2008 at 8:32 AM
Is your question regarding how to display sub menus in the nav menu? I have the same question. Basically, on one page can you display the top level page with the sub pages listed in drop downs in the Nav Menu? I see this in the example forhttp://www.circlekwest.com/
I can't figure out if this is a configuration option, or if it would require a php customization.
I can't figure out if this is a configuration option, or if it would require a php customization.
Me Too
Nov 20, 2008 at 3:10 PM
I'd love to be able to have drop down menu's likehttp://www.circlekwest.com/
is this possible with autonav ?
is this possible with autonav ?
auto nav submenus
Nov 20, 2008 at 3:15 PM
What you are asking for is quite possible. However, it relies more on CSS than autonav itself.
When setting up autonav, you can display relevant submenu items. This is rendered in HTML as a nested list, which can be contorted into dropdown menus via CSS.
A nested list looks like:
As for how to do this contortion, scour Google for "CSS Drop-down menus" or something similar.
When setting up autonav, you can display relevant submenu items. This is rendered in HTML as a nested list, which can be contorted into dropdown menus via CSS.
A nested list looks like:
<ul> <li>Option 1</li> <li>Option 2</li> <li> Option3 <ul> <li>Sub-option 1</li> <li>Sub-option 2</li> <li>Sub-option 3</li> </ul> </li> </ul>
As for how to do this contortion, scour Google for "CSS Drop-down menus" or something similar.
Works in Preview but doesnt output it right
Jan 16, 2009 at 5:14 PM
With the auto nav, if you choose Display All under 'Sub Pages to Display' and Display a Custom Amount under 'Sub-Page Levels' with 1 levels and look at the preview it creates nested lists like on the circle k site. However, when you save it, it doesnt actually output it right. The Preview looks like this:
But it outputs it on the site like this:
So, there is no nested list, even though the preview got it right.
<ul> <li>About</li> <li>Themes <ul> <li>Unbound</li> <li>Keep It Simple</li> <li>FreshMedia</li> </ul> </li> <li>Contact</li> </ul>
But it outputs it on the site like this:
<ul> <li>About</li> <li>Themes</li> <li>Unbound</li> <li>Keep It Simple</li> <li>FreshMedia</li> <li>Contact</li> </ul>
So, there is no nested list, even though the preview got it right.
Change that
Jan 16, 2009 at 5:21 PM
Ok, so it does output it right in a regular auto nav block, but if you are using the header menu nav (the default header nav) it doesnt output the nested list. I am guessing something in header_menu.php is messing this up. Anyone have any ideas?
Incorporate this?
Jan 16, 2009 at 5:29 PM
I am guessing this code from view.php in the auto nav block folder needs to get incorporated into header_menu.php?
But I dont know much about php, so not sure if this is it or how to do it.
$thisLevel = $ni->getLevel(); if ($thisLevel > $lastLevel) { echo("<ul>"); } else if ($thisLevel < $lastLevel) { for ($j = $thisLevel; $j < $lastLevel; $j++) { echo("</li></ul></li>"); } } else if ($i > 0) { print '</li>'; }
But I dont know much about php, so not sure if this is it or how to do it.
Spiral found fix
Jan 16, 2009 at 7:08 PM
Looks like spiral already found the fix for this. seems to work.
http://www.concrete5.org/community/forums/customizing_c5/menu__sub_...
http://www.concrete5.org/community/forums/customizing_c5/menu__sub_...





frz
yeah, autonav can start anywhere