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?
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?
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.
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.
Just set your custom styles to use the classes the auto-nav assigns to the list items.
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.
I might be wrong, c5 still confuses me in many ways.
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.
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.
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.