This is the website i have been developing http://www.atu-uat.org, the menus are ok but are not working the way i want. Click any level 1 menu e.g Clients or Management , they open level 2 menus but if level 2/level 3 has no children and the page is active . The menu disappears...e.g
-Clients
-->Network Operators & Service Providers
-->Development Partners
-->Manufacturers & Suppliers
If I click Development Partners , all the three submenu disappears. How do i maintain the submenu when of the submenu is active.
Thanks.
Menu help
Re: Menu help
You'll need to give us more information. What version of CMSMS are you using? How are you calling your menus?
Re: Menu help
It's your call to menu that is the issue.
How do you WANT it to behave?
For sub-menu, I would personally just put in the menu call as this:
{menu start_level="2" number_of_levels="1"}
this calls pages which are level 2 only.
then you can call your 3rd level of nav somewhere else, with something like,
{menu start_level="3" number_of_levels="1"}
Where? maybe in left hand column? is up to you
.
you could also do drop-downs with the right style sheet to show/hide the navigation. In which case, the menu is {menu start_level="2" number_of_levels="2"}
How do you WANT it to behave?
For sub-menu, I would personally just put in the menu call as this:
{menu start_level="2" number_of_levels="1"}
this calls pages which are level 2 only.
then you can call your 3rd level of nav somewhere else, with something like,
{menu start_level="3" number_of_levels="1"}
Where? maybe in left hand column? is up to you

you could also do drop-downs with the right style sheet to show/hide the navigation. In which case, the menu is {menu start_level="2" number_of_levels="2"}
Re: Menu help
Here are my codes......
level 1/top menu/parents:
In my template => {cms_module module='menumanager' template='atu_menu' number_of_levels='1' start_level ='1' items='home,about-us,clients,core-activity,management,members-2,contact-us'}
submenu/children/level 2 or 3 code:
In my template =>{cms_module module='menumanager' template='atu_submenu' show_root_siblings='0' collapse='1' start_level='2'}
level 1/top menu/parents:
Code: Select all
{if $count > 0 }
{foreach from=$nodelist item=node}
<td align="left" valign="top" class="yellowbg"><a href="{$node->url}"
{if $node->target ne ""} target="{$node->target}"{/if}
>{$node->menutext}</a></td>
<td width="2" align="left" valign="top"><img src="images/strip.jpg" align="left" /></td>
{/foreach}
{/if}
submenu/children/level 2 or 3 code:
Code: Select all
{foreach from=$nodelist item=node}
{if $node->current==true}
{assign var="depth" value=$node->depth}
{/if}
{/foreach}
{foreach from=$nodelist item=node}
{if $node->depth==$depth+1}
{assign var="hassub" value=1}
{/if}
{/foreach}
{if $hassub==1 }
{foreach from=$nodelist item=node}
{if $node->depth==$depth+1}
<a href="{$node->url}"
{if $node->target ne ""} target="{$node->target}"{/if}
>{$node->menutext}</a>
{if $count > ($node->index+1)} |
{/if}
{/if}
{/foreach}
{/if}
Re: Menu help
This is very heavily modified from default. Can you use default menus, which do exactly what you need done, per your original post?
You should have written off the bat that you had heavily modified the menu system. I'm not sure why you are doing it?
Furthermore, did you try "number_of_levels" to 1? That was my suggestion for your submenu. Can you do that & report back?
You should have written off the bat that you had heavily modified the menu system. I'm not sure why you are doing it?
Furthermore, did you try "number_of_levels" to 1? That was my suggestion for your submenu. Can you do that & report back?