Witam,
dopiero zaczynam z CMSMS, mam mały problem z wyświetlaniem menu.
Chciałbym aby menumanager nie wstawiał mi cyfr przed nazwą 1: Home, 2:..., 3:..
Mam domyślny szablon menu css, proszę o pomoc jak go zmienić by nie liczył
------------------------------------------------------
{* 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'}
{$node->menutext}
{elseif $node->type == 'separator'}
{else}
type != 'sectionheader' and $node->type != 'separator'}
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 ne ""} target="{$node->target}"{/if}>{$node->hierarchy}: {$node->menutext}
{elseif $node->type == 'sectionheader'}
>{$node->hierarchy}: {$node->menutext}
{/if}
{/foreach}
{repeat string="" times=$node->depth-1}
{/if}
Problem z menu
Re: Problem z menu
po prostu pokasuj z templatea to co Ci nie potrzebne...
ewentualnie możesz sobie użyć jakieś tam mojego, on taki czysty jest (:
ewentualnie możesz sobie użyć jakieś tam mojego, on taki czysty jest (:
Code: Select all
{if $count > 0}
<ul id="menu">
{foreach from=$nodelist item=node}
{if $node->depth != $node->prevdepth}
{if $node->depth > $node->prevdepth}
<ul>
{elseif $node->depth < $node->prevdepth}
</li></ul>
{/if}
{elseif $node->index > 0}
</li>
{/if}
{if $node->current == true}
<li>
{else}
<li>
{/if}
{if $node->type == 'sectionheader'}
<span class="sectionheader{$node->depth}">{$node->menutext}</span>
{else}
<a href="{if $node->id == 15}/{else}{$node->url}{/if}"{if $node->target ne ""} target="{$node->target}"{/if}>{$node->menutext}</a>
{/if}
{/foreach}
{repeat string="</li></ul>" times=$node->depth-1} </li>
</ul>
{/if}
Re: Problem z menu
Witam jaką komendę mogę użyć do zlikwidowania tych cyferek przed znacznikami w menu??
Re: Problem z menu
Cześć.
@sebopa - w twoim przypadku, aby pozbyć się cyferek wystarczy usunąć tą część:
Zauważ, że występuje ona 2 razy w twoim szablonie.
Maciek
@sebopa - w twoim przypadku, aby pozbyć się cyferek wystarczy usunąć tą część:
Code: Select all
<dfn>{$node->hierarchy}: </dfn>
Maciek