ich hab so ein MenuManager template erstellt das nicht ganz so wie ich will funktioniert.
Das Problem ist das beim letzten Link das nicht geschlossen wird und ich bin einfach blind und sehe den Fehler nicht.
Mein MM Template:
Code: Select all
{if $count > 0}
<div class="glossymenu">
{foreach from=$nodelist item=node}
{if $node->depth > $node->prevdepth}
{repeat string='<div class="submenu"><ul>' times=$node->depth-$node->prevdepth}
{elseif $node->depth < $node->prevdepth}
{repeat string="</ul></div>" times=$node->prevdepth-$node->depth}
{elseif $node->index > 0}
{/if}
{if $node->current == true}
<a href="{$node->url}" class="menuitem current"{if $node->target ne ""} target="{$node->target}"{/if}>{$node->menutext}</a>
{elseif $node->haschildren == true}
<a href="{$node->url}" class="menuitem submenuheader"{if $node->target ne ""} target="{$node->target}"{/if}>{$node->menutext}</a>
{elseif $node->depth == 2 and $node->current == true}
<li><a class="current" href="{$node->url}" {if $node->target ne ""} target="{$node->target}"{/if}>{$node->menutext}</a></li>
{elseif $node->depth == 2}
<li><a href="{$node->url}" {if $node->target ne ""} target="{$node->target}"{/if}>{$node->menutext}</a></li>{elseif $node->type == 'sectionheader'}
<a href="{$node->url}" class="menuitem submenuheader"{if $node->target ne ""} target="{$node->target}"{/if}>{$node->menutext}</a>{else}
<a class="menuitem" href="{$node->url}"{if $node->target ne ""} target="{$node->target}"{/if}>{$node->menutext}</a>{/if}{/foreach}
</div>
{/if}