I just downloaded CMSMS and it seems to be perfect for me. But the site I want to build has his first level horizantally at the top, and the rest (the whole hierarchical menu from the active first-level-menu-item) at the right.
basicly what I need is to split the first level of the menu into another tag, leaving the rest of the menu in another tag. Of course this submenu only shows the items and subitems under the active first-level-menu.
I've been messing around with the menu manager, starting from the vertical CSS menu and what I've got so far is this :
Code: Select all
{* CSS classes used in this template:
#menuwrapper - The id for the <div> that the menu is wrapped in. Sets the width, background etc. for the menu.
#primary-nav - The id for the <ul>
.menuparent - The class for each <li> that has children.
.menuactive - The class for each <li> that is active or is a parent (on any level) of a child that is active. *}
{if $count > 0}
<div id="menuwrapper">
<ul id="primary-nav">
{foreach from=$nodelist item=node}
{if $node->depth== 1}
{if $node->current == true}
<li class="menuactive"><a class="menuactive" {else}
<li><a {/if}
href="{$node->url}"{if $node->target ne ""} target="{$node->target}"{/if}>{$node->menutext}</a></li>{/if}{/foreach}
</ul>
<ul id="right-nav">
{foreach from=$nodelist item=node}
{if $node->depth <> 1}
{if $node->depth > $node->prevdepth}
{repeat string="<ul class='red'>" 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}
{if $node->parent == true or ($node->current == true and $node->haschildren == true)}
<li class="menuactive menuparent"><a class="menuactive menuparent" {elseif $node->current == true}
<li class="menuactive"><a class="menuactive" {elseif $node->haschildren == true}
<li class="menuparent"><a class="menuparent" {else}
<li><a {/if}
href="{$node->url}"{if $node->target ne ""} target="{$node->target}"{/if}>{$node->menutext}</a>{/if}{/foreach}
{repeat string="</li></ul>" times=$node->depth-1} </li>
</ul>
</div>
{/if}