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

Fxxxx
 
tallacman replied on at Permalink Best Answer Reply
tallacman
Try choosing template > "none" instead of "header menu".
PineCreativeLabs replied on at Permalink Reply
PineCreativeLabs
Try using this code. It automatically generates the appropriate structure, as it makes Concrete do all the work.

<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.
Fxxxx replied on at Permalink Reply
Fxxxx
Thank you!