MenüManager: in einem Menü nur Unterseiten anzeigen
Posted: Sat Mar 17, 2007 7:56 pm
Hallo,
wie muss ich den Menü Code ändern,
das einmal nur die Seiten ohne Tiefe angezeigt werden
und einmal nur Unterseiten der aktuellen Seite angezeigt werden?
Dann kann ich diese 2 Menüs in mein Template einbauen.
Der MenüManager ist das einzigste an CMSms, was ich nicht verstehe
wie muss ich den Menü Code ändern,
das einmal nur die Seiten ohne Tiefe angezeigt werden
und einmal nur Unterseiten der aktuellen Seite angezeigt werden?
Dann kann ich diese 2 Menüs in mein Template einbauen.
Der MenüManager ist das einzigste an CMSms, was ich nicht verstehe

Code: Select all
{* CSS classes used in this template:
.activeparent - The top level parent when a child is the active/current page
li.active0n h3 - n is the depth/level of the node. To style the active page for each level separately. The active page is not clickable.
.clearfix - Used for the unclickable h3 to use the entire width of the li, just like the anchors. See the Tools stylesheet in the default CMSMS installation.
li.sectionheader h3 - To style section header
li.separator - To style the ruler for the separator *}
{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->current == true}
{$node->menutext}
{elseif $node->parent == true}
url}"{if $node->accesskey != ''} accesskey="{$node->accesskey}"{/if}{if $node->tabindex != ''} tabindex="{$node->tabindex}"{/if}{if $node->titleattribute != ''} title="{$node->titleattribute}"{/if}>{$node->menutext}
{elseif $node->type == 'sectionheader'}
{$node->menutext}
{elseif $node->type == 'separator'}
{else}
url}"{if $node->accesskey != ''} accesskey="{$node->accesskey}"{/if}{if $node->tabindex != ''} tabindex="{$node->tabindex}"{/if}{if $node->titleattribute != ''} title="{$node->titleattribute}"{/if}{if $node->target != ''} target="{$node->target}"{/if}>{$node->menutext}
{/if}
{/foreach}
{repeat string="" times=$node->depth-1}
{/if}