Hilfe bei cssmenu.tpl

Deutschsprachiger Support für CMS Made Simple
Post Reply
trill94

Hilfe bei cssmenu.tpl

Post by trill94 »

Hi Leute.
Ich habe ein Problem mit dem Menü, dass man unter cssmenu.tpl erreicht. Ich möchte dabei nämlich einrichten, dass man den menuparent nicht anklicken kann, er also kein Ziel hat.
Ich poste hier zur Sicherheit mal den Code, damit ihr wisst, worum es geht:

Code: Select all

{* CSS classes used in this template:
#menuwrapper - The id for the <div> that the menu is wrapped in. Sets the width, background etc. for the menu.
#primary-nav - The id for the <ul>
.menuparent - The class for each <li> that has children.
.menuactive - The class for each <li> that is active or is a parent (on any level) of a child that is active. *}
{if $count > 0}
<div id="menuwrapper">
<ul id="primary-nav">
{foreach from=$nodelist item=node}
{if $node->depth > $node->prevdepth}
{repeat string='<ul class="unli">' 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->parent == true or ($node->current == true and $node->haschildren == true)}
<li class="menuactive menuparent">
<a class="menuactive menuparent" {elseif $node->current == true}
<li class="menuactive">
<a class="menuactive" {elseif $node->haschildren == true}
<li class="menuparent">
<a class="menuparent" {elseif $node->type == 'sectionheader' and $node->haschildren == true}
<li class="sectionheader"><span class="sectionheader">{$node->menutext}</span>{elseif $node->type == 'separator'}
<li style="list-style-type: none;"> <hr class="menu_separator" />{else}
<li>
<a {/if}
{if $node->type != 'sectionheader' and $node->type != 'separator'}
{if $node->target}target="{$node->target}" {/if}
href="{$node->url}"><span>{$node->menutext}</span></a>
{elseif $node->type == 'sectionheader'}
><span class="sectionheader">{$node->menutext}</span></a>
{/if}
{/foreach}
{repeat string='</li></ul>' times=$node->depth-1}
</li>
</ul>
<div class="clearb"></div>
</div>
{/if}

Über schnelle Antwort und Hilfe wäre ich sehr dankbar. Ich habe mich auch selber daran versucht, meine Lösungansätze führten aber zu nichts und ich muss ehrlich gestehen, dass ich durch den Code nicht wirklich durchblicke. Ich benutze CMSms in der Version 1.6.6
LG,
trill94
Last edited by trill94 on Sun Jul 18, 2010 6:43 pm, edited 1 time in total.
NaN

Re: Hilfe bei cssmenu.tpl

Post by NaN »

Wenn man ihn nicht anklicken soll, dann mach doch aus diesen Menüpunkten einfach ein Sectionheader (Abschnittsüberschrift).
Post Reply

Return to “German - Deutsch”