Cant get a my sub menu to work!

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Locked
Breezemedia

Cant get a my sub menu to work!

Post 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??
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Cant get a my sub menu to work!

Post 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?...
Breezemedia

Re: Cant get a my sub menu to work!

Post by Breezemedia »

I tryed that, but that only "almost work"

When i'm on a sub-subpage the parent pages also show.. :(
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Cant get a my sub menu to work!

Post 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...
Locked

Return to “Layout and Design (CSS & HTML)”