Noob in need of global menu assistance. [Solved]
Posted: Fri Sep 07, 2007 4:41 am
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.
I'd appreciate any guidance. Thanks in advance!
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}