Menu vraagje

Nederlandse ondersteuning voor CMS Made Simple

Moderator: velden

Post Reply
harmh
Forum Members
Forum Members
Posts: 84
Joined: Tue Aug 24, 2010 7:37 am

Menu vraagje

Post by harmh »

Beste iedereen!

Heb een vraagje over het menu. Ik heb een horizontaal menu ontwikkeld met een dropdown voor de subpagina's. Op dit moment wordt er per menu item de subpagina's weergegeven, maar ik wil eigenlijk in de dropdown alle subpagina's laten zien van alle menuitems. Hoop dat jullie beetje begrijpen wat ik bedoel. Mijn template is nu vrij standaard:


{* CSS classes used in this template:
#menuwrapper - The id for the that the menu is wrapped in. Sets the width, background etc. for the menu.
#primary-nav - The id for the
.menuparent - The class for each that has children.
.menuactive - The class for each that is active or is a parent (on any level) of a child that is active. *}
{if $count > 0}


{foreach from=$nodelist item=node}
{if $node->depth > $node->prevdepth}
{repeat string='' times=$node->depth-$node->prevdepth}
{elseif $node->depth prevdepth}
{repeat string=' ' times=$node->prevdepth-$node->depth}

{elseif $node->index > 0}
{/if}
{if $node->parent == true or ($node->current == true and $node->haschildren == true)}

current == true}

haschildren == true}

type == 'sectionheader' and $node->haschildren == true}
{$node->menutext} {elseif $node->type == 'separator'}
{else}

type != 'sectionheader' and $node->type != 'separator'}
{if $node->target}target="{$node->target}" {/if}
href="{$node->url}">{$node->menutext}
{elseif $node->type == 'sectionheader'}
>{$node->menutext}
{/if}
{/foreach}
{repeat string=' ' times=$node->depth-1}




{/if}


Hoop dat jullie weten hoe je alle submenu items kunt weergeven is de dropdown.
Post Reply

Return to “Dutch - Nederlands”