Page 1 of 1

Menümanager

Posted: Tue Feb 10, 2009 8:10 pm
by oliroos
Sry hab ausversehen auf "remove" geklickt ;D Daher hier erneut

Hallo zusammen, ich bin mir nicht ganz sicher ob das das richtige Forum ist. Wenn nichts sry.
Ich habe folgendes Problem, auf meiner Webseite http://oliroos.ch/index.php möchte ich das Menü folgendermassen haben: Unter dem Header auf diesem schwarzen Balken sollen die Hauptnavigationspunkte stehen, rechts davon über dem Newsmodel sollen die Subnavigationspunkte stehen.

1. Ist das möglich mit CMS Made Simple?
2. Wenn ja wie?

Wäre super wenn ihr mir weiter helfen könnt!
Übrigens, super CMS benutze es zum ersten mal und es klappt scho fast alles  Smiley

Durch den Tipp aus einer Antwort ein vorgefertigtes Menütemplate zu nehmen hab ich zumindest Navi und Subnavi getrennt; http://oliroos.ch/index.php jetzt aber blicke ich im Code des Menütemplates überhaupt nicht durch!

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}
<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><dfn>Current page is {$node->hierarchy}: </dfn>{$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}><dfn>{$node->hierarchy}: </dfn>{$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}><dfn>{$node->hierarchy}: </dfn>{$node->menutext}</a>

{/if}

{/foreach}
{repeat string="</li></ul>" times=$node->depth-1}</li>
</ul>
{/if}
Was muss ich wo angeben das die Navi horizontal ist? Und wie krieg ich die Subnavi schöner formatiert?
Herzlichen Dank im Voraus!

Re: Menümanager

Posted: Tue Feb 10, 2009 9:13 pm
by cyberman
Ich hatte dir doch in dem gelöschten Thread den Hinweis auf das mitgelieferte Seiten-Template gegeben.

Schau dir dort mal an, wie das Menü im Template eingebaut wurde (insbesondere die div-Container) und versuch, es auf dein Template zu übertragen. Anschließend kannst du deinem Template testhalber das Stylesheet "Navigation: Simple - Horizontal" zuweisen.