Mały problem z Menu

Pomoc po polsku dla CMS Made Simple
Post Reply
vaariat
New Member
New Member
Posts: 3
Joined: Tue May 27, 2008 11:41 am

Mały problem z Menu

Post by vaariat »

Witam

Mam powiedzmy takie menu menu:

1. Strona Główna
1.1 podstrona
1.1.1 Podstrona 2
1.1.2 Podstrona 3
1.2 podstrona


Gdy aktywny jest 1. to w menu widoczne sa podstrony 1.1, 1.2 itd. ale niestety gdy aktywny jest 1.1 to nie rozwija mi się menu i nie są widoczne podstrony 1.1.1, 1.1.2 itd.

Code: Select all

{if $count > 0}
<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><strong>{$node->menutext}</strong>
{elseif $node->parent == true}
<li><strong><a href="{$node->url}" {if $node->titleattribute != ''} title="{$node->titleattribute}"{/if}>{$node->menutext}</a></strong>
{elseif $node->type == 'separator'}
<li> <hr />
{else}
<li><a href="{$node->url}" {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}
Z góry dzięki za pomoc:)
Post Reply

Return to “Polish - Polski”