Code: Select all
{if $count > 0}
<ul id="top_menu">
{foreach from=$nodelist item=node}
{if $node->depth > $node->prevdepth}
{repeat string='<ul class="sub">' times=$node->depth-$node->prevdepth}
{elseif $node->depth < $node->prevdepth}
{repeat string="</li></ul>" times=$node->prevdepth-$node->depth}
</li>
{elseif $node->index > 0}
</li>
{/if}
<li{if $node->depth < 2} class="top"{/if}>
<a href="{$node->url}">
<span>{$node->hierarchy} - {$node->menutext} - {if $node->haschildren == true}y{else}n{/if}</span>
</a>
{/foreach}
{repeat string="</li></ul>" times=$node->depth-1}
</li>
</ul>
{/if}
Code: Select all
5.1 - Šachy - n
5.1.1 - A - Velmistrovský open - n
5.2 - Bridž - n
5.3 - Go - n
5.4 - Scrabble - n
5.5 - Mariáš - n
5.6 - Poker - n
5.7 - Rubikova kostka - n
5.8 - Backgammon - n
5.9 - Další hry - n
5.9.1 - Dáma - n
5.9.2 - Piškvorky - n
In my page template I call it this way:
Code: Select all
{menu template="czechopen-top-menu" childrenof="horni-navigace"}