Page 1 of 1

Noob in need of global menu assistance. [Solved]

Posted: Fri Sep 07, 2007 4:41 am
by fisherbt
Hello.  First, this is my first site with CMSMS.  I need some help with menus.  I've got six pages as follows:

1. Home
2. Services
3. Contact
4. Our Process
5. About Us
  5.1 History

I'd like to create a horizontal menu that is displayed across all the pages and includes only the top-level links.  The issue is that on my About Us page and History page, the History link is included in the top menu.  Here's the template I'm using.

Code: Select all

{assign var="startshowing" value="0"}
{if $count > 0}
<ul id="mainNav">
{foreach from=$nodelist item=node}
<li>
<a href="{$node->url}"{if $node->target ne ""} target="{$node->target}"{/if}>{$node->menutext}</a></li>
{if $node->current == true}
{assign var="startshowing" value="1"}
{/if}
{/foreach}
</ul>
{/if}
I'd appreciate any guidance.  Thanks in advance!

Re: Noob in need of global menu assistance.

Posted: Fri Sep 07, 2007 5:39 am
by RonnyK
fisherbt,

your problem is not quite clear to me. do you have a link?

Did you check the templates that come with the default installation. The css-top-menu might be what ou're looking for. There are others as well, if you want "single-hor and then vertical menu for children".

Ronny

Re: Noob in need of global menu assistance.

Posted: Fri Sep 07, 2007 7:21 am
by cyberman
fisherbt wrote: I'd like to create a horizontal menu that is displayed across all the pages and includes only the top-level links.
You can limit number of levels with MenuManagers parameter number_of_levels - please read module help ;).

Code: Select all

{menu template='your_navigation.tpl' number_of_levels='1'}

Re: Noob in need of global menu assistance. [Solved]

Posted: Fri Sep 07, 2007 11:45 am
by fisherbt
That did the trick. Thank you very much, I appreciate the help.