Problem z menu

Pomoc po polsku dla CMS Made Simple
Post Reply
sebopa
New Member
New Member
Posts: 2
Joined: Wed May 21, 2008 9:01 am

Problem z menu

Post by sebopa »

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}
unnamed7
Forum Members
Forum Members
Posts: 42
Joined: Tue Dec 05, 2006 1:53 pm

Re: Problem z menu

Post by unnamed7 »

po prostu pokasuj z templatea to co Ci nie potrzebne...

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}
puchuk

Re: Problem z menu

Post by puchuk »

Witam jaką komendę mogę użyć do zlikwidowania tych cyferek przed znacznikami w menu??
maciekm
Forum Members
Forum Members
Posts: 12
Joined: Wed Dec 14, 2005 2:47 pm

Re: Problem z menu

Post by maciekm »

Cześć.

@sebopa - w twoim przypadku, aby pozbyć się cyferek wystarczy usunąć tą część:

Code: Select all

<dfn>{$node->hierarchy}: </dfn>
Zauważ, że występuje ona 2 razy w twoim szablonie.

Maciek
Post Reply

Return to “Polish - Polski”