Trying to create menu with more than one level

Permalink
I am brand new to concrete5. I installed it and am getting familiar with all the blocks I think I will need. So far, I love concrete5!! It seems to be just what I have been looking for.

My question is that I am trying to create a navbar using auto-nav and I have set the options to display all sub-pages. When I preview the nav, it looks good, but then when I actually test it, all the pages and sub-pages are in one unordered list. I was hoping the second level pages would be in a nested unordered list so I could style them for drop down menus.

Is there any way to do this?

 
michaelmior replied on at Permalink Reply
michaelmior
I believe you will need to create a custom template for the autonav block. The base template is located under concrete5/blocks/autonav/templates/header_menu.php. Any modifications should be placed with a new name under blocks/autonav/templates.

I've never actually found the need to do multilevel menus in one list, so there may be an easier way that I'm not aware of.
dg1 replied on at Permalink Reply
Thanks. I obviously have alot to learn still. I was looking in google earlier and found an article about a custom template for creating breadcrumbs so it sounds like custom templates are pretty powerful. I'll check out the file you mentioned and see if I can figure it out. Thanks again.
SpeedBump replied on at Permalink Reply
SpeedBump
Sub-pages are nested unordered lists under their parent list items in auto-nav blocks. Look at the source of an auto-nav and you'll see it. If it's not displaying that way, it could be your stylesheets messing with it.

Just set your custom styles to use the classes the auto-nav assigns to the list items.
abra100pro replied on at Permalink Reply
abra100pro
afaik the lists are not enough defined to do that - I tried it and found just the active list to have a class named "nav-selected" many other entries do have a (IMHO very bad) class=' '

I might be wrong, c5 still confuses me in many ways.
elixir replied on at Permalink Reply
I had the same issue.

The autonav block had the Custom Template set to Header Menu (which looks like it creates a single level list). Changing the Custom Template to None gave me nested lists.