edit auto nav block to make it output differently
Permalink
Hi all
I need to make the C5 auto nav work with this nav menu:
http://jsfiddle.net/dXB37/4/
Please can you help?
I am actually still working on this jsfiddle. When you get to a sub menu <ul> the centre part is laying over the links making the links not click-able - but i might be able to fix this!
I was hoping that some one here might help me with making this menu work with C5.
This menu doest have embedded <ul> tags
eg:
<ul>
<li><a href="">
<ul>
<li><a></li>
</ul>
</li>
</ul>
This menu just has <ul> aftet </ul> after </ul> not embedded with in <li> tags.
So i was hoping some one here might know how to make C5 out put its sub and sub sub menus as individual unordered lists?
e.g:
for each sub menus
output the children as a new ul
then if the children have children output these as another <ul>
I need to make the C5 auto nav work with this nav menu:
http://jsfiddle.net/dXB37/4/
Please can you help?
I am actually still working on this jsfiddle. When you get to a sub menu <ul> the centre part is laying over the links making the links not click-able - but i might be able to fix this!
I was hoping that some one here might help me with making this menu work with C5.
This menu doest have embedded <ul> tags
eg:
<ul>
<li><a href="">
<ul>
<li><a></li>
</ul>
</li>
</ul>
This menu just has <ul> aftet </ul> after </ul> not embedded with in <li> tags.
So i was hoping some one here might know how to make C5 out put its sub and sub sub menus as individual unordered lists?
e.g:
for each sub menus
output the children as a new ul
then if the children have children output these as another <ul>
i decided i would have more problems making this work with individual UL tags so i have remade the menu to work with embedded ul tags so i dont have to mess too much with the autonav block.
http://jsfiddle.net/ZN2dH/9/
just trying to figure out the jquery bit to make the menu to show / hiding each level with a way of getting back to previous levels.
http://jsfiddle.net/ZN2dH/9/
just trying to figure out the jquery bit to make the menu to show / hiding each level with a way of getting back to previous levels.
I don't know how comfortable you are with PHP, but inside that file you will see that all the navigation items are brought in with:
Now normally the way the menu is output in any of the default template is in a single loop. So in that 1 loop all the levels are output. It sounds like what you need to do is output only the top level in the first loop. Then you need to create another loop through the original $navItems and output only subnav items. If you do this correctly you can create the multiple <ul> lists and output the names you need.
This is achievable but it will take a bit of work. If you can get the templates started and get some progress on the loops... post back here if you get stuck.