Page 1 of 1

Cant get a my sub menu to work!

Posted: Sat Sep 20, 2008 6:43 pm
by Breezemedia
Ok, I'm new to CMS made simple, so if this is a stupid question, please dont shoot me :)

My page list lookes like this
- Main page
- Contact
- Products
- Tools
  - Tools 1
  - Tools 2
- Workwear
  - Helmets
  - Belts
- Other

I want a sidebar that shows a submenu.. Like if i'm on "Products" my menu should look like this
Products
- Tools
- Workwear
- Other

But when I'm on "Tools" i want the submenu to change to
Tools
- Tools 1
- Tools 2


The problem is that i get every subpage, even pages that are sub- subpages..

{cms_module module='menumanager' template='submenu' start_level='2'}

Template:
{parent_page_title}


{foreach from=$nodelist item=node}
{if $node->current == true}
url}">{$node->menutext}
{else}
url}">{$node->menutext}
{/if}
{/foreach}



Is there any fix to this??

Re: Cant get a my sub menu to work!

Posted: Sat Sep 20, 2008 6:49 pm
by Dr.CSS
If you read the pages that come with CMS Made Simple you will find the info you are looking for and reading the Help for Menu manager is a good idea also...

collapse="1" maybe?...

Re: Cant get a my sub menu to work!

Posted: Sat Sep 20, 2008 6:53 pm
by Breezemedia
I tryed that, but that only "almost work"

When i'm on a sub-subpage the parent pages also show.. :(

Re: Cant get a my sub menu to work!

Posted: Sat Sep 20, 2008 6:58 pm
by Dr.CSS
You may want to try using some of the default menu templates like {menu template='simple_navigation.tpl' collapse='1'} this is the one used in the default install main template, but you will have to add the level call to get just the sub pages, this is all explained in the Menu manager Help and in the default install pages...