Habe mir ein Menü gebastelt:
Code: Select all
{if $count > 0}
<ul>
{foreach from=$nodelist item=node}
{if $node->depth != $node->prevdepth}
{if $node->depth > $node->prevdepth}
<ul>
{elseif $node->depth < $node->prevdepth}
</li></ul>
{/if}
{elseif $node->index > 0}
</li>
{/if}
<li>
<a href="{$node->url}" {if $node->current == true}class="selected"{else}{$node->current == false}{/if}>{$node->menutext}</a>
{/foreach}
{repeat string="</li></ul>" times=$node->depth-1} </li>
</ul>
{/if}
Link
Link
Link
wenn jetzt aber eine Seite mehrere unterseiten hat, so wirft es mir diesen code aus:
Link
Link
Link
Link
Link
Link
das ist auch soweit ok! Problem: Ich möchte dass das li indem die Unterliste steckt, das class="selected" behält! wie erreiche ich das?
Grüße