Second level menus in autonav

Permalink
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?

jereme
 
frz replied on at Permalink Reply
frz
there's a bunch of options around where the autonav should start, they all interact in confusing and exciting ways... yes you can have it start at the second level.
jereme replied on at Permalink Reply
jereme
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.
jnichols437 replied on at Permalink Reply
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.
nitrokevin replied on at Permalink Reply
I'd love to be able to have drop down menu's likehttp://www.circlekwest.com/

is this possible with autonav ?
jereme replied on at Permalink Reply
jereme
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:

<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.
c5mix replied on at Permalink Reply
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:
<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.
c5mix replied on at Permalink Reply
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?
c5mix replied on at Permalink Reply
I am guessing this code from view.php in the auto nav block folder needs to get incorporated into header_menu.php?
$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.
c5mix replied on at Permalink Reply
Looks like spiral already found the fix for this. seems to work.
http://www.concrete5.org/community/forums/customizing_c5/menu__sub_...