Menu
Permalink
I have a problem:
I want to have this HTML code per the menu:
<ul>
<li>
<a></a>
<ul>
<li>
<a></a>
</li>
</ul>
</li>
</ul>
OK? So I could create a drop down menu...
but when I select in Edit
in the sitemap order
at the top level
display all
display all
The code is:
<ul>
<li><a></a></li>
<li><a></a></li>
</ul>
What's the problem?
Thank you
I want to have this HTML code per the menu:
<ul>
<li>
<a></a>
<ul>
<li>
<a></a>
</li>
</ul>
</li>
</ul>
OK? So I could create a drop down menu...
but when I select in Edit
in the sitemap order
at the top level
display all
display all
The code is:
<ul>
<li><a></a></li>
<li><a></a></li>
</ul>
What's the problem?
Thank you

Try choosing template > "none" instead of "header menu".
Try using this code. It automatically generates the appropriate structure, as it makes Concrete do all the work.
Notice that the Sub Page Levels num is set to 3 - this will show 3 levels of navigation, including the top level.
<div class="nav"> <?php $bt = BlockType::getByHandle('autonav'); $bt->controller->displayPages = 'top'; $bt->controller->orderBy = 'display_asc'; $bt->controller->displaySubPages = 'all'; $bt->controller->displaySubPageLevels = 'custom'; $bt->controller->displaySubPageLevelsNum = '3'; $bt->render('templates/main_menu'); ?><br class="clear" /> </div>
Notice that the Sub Page Levels num is set to 3 - this will show 3 levels of navigation, including the top level.
Thank you!