[SOLVED] menumanager: display parent's menutext above subnavigation
Posted: Mon Nov 05, 2007 12:27 pm
hi there,
it seems to me that there is no $node attribute that helps me with that...
i want to display the parent's node's menutext above the subnavigation...
here the structure of main navigation
AA BB CC DD (green = active)
and the subnavi should be like that (children of the active main navigation)
CC:
CC_1
CC_2
CC_3
my code is like that:
the page is http://wp1057983.wp090.webpack.hosteuro ... ifferences
behind the 360° on the right hand side should be "Unterschiede"
it seems to me that there is no $node attribute that helps me with that...
i want to display the parent's node's menutext above the subnavigation...
here the structure of main navigation
AA BB CC DD (green = active)
and the subnavi should be like that (children of the active main navigation)
CC:
CC_1
CC_2
CC_3
my code is like that:
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}
{*Here is my text with the parent menutext..*}
<p class="txtueber">360° {$node->parent->menutext}</p>
<ul>
{foreach from=$nodelist item=node}
{if $node->depth > $node->prevdepth}
{repeat string="<ul>" 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->current == true}
<li class="currentpage"><h3>{$node->menutext}</h3>
{elseif $node->parent == true}
<li class="activeparent"><a class="activeparent" href="{$node->url}"{if $node->accesskey != ''} accesskey="{$node->accesskey}"{/if}{if $node->tabindex != ''} tabindex="{$node->tabindex}"{/if}{if $node->titleattribute != ''} title="{$node->titleattribute}"{/if}>{$node->menutext}</a>
{elseif $node->type == 'sectionheader'}
<li class="sectionheader">{$node->menutext}
{elseif $node->type == 'separator'}
<li class="separator" style="list-style-type: none;"> <hr />
{else}
<li><a href="{$node->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}</a>
{/if}
{/foreach}
{repeat string="</li></ul>" times=$node->depth-1}</li>
</ul>
{/if}the page is http://wp1057983.wp090.webpack.hosteuro ... ifferences
behind the 360° on the right hand side should be "Unterschiede"