Page 1 of 1

Submenu Problem

Posted: Thu Apr 15, 2010 8:37 am
by rkrijgsman
My submenu shows main menu items...
I don't want to see the main menu items in the submenu.
This is the URL: www.verkeersschoolemielhoek.nl

How to hide the mainmenu items from the submenu??
I've used start_element="2.1" and for the second submenu start_element="3.1" etc...

This is the menu code for now:


   
      {menu number_of_levels='1'}
   
   
   
       
       
        {menu start_page="home" show_all="0"}
       
       
   
       
       
        {menu start_page="opleidingen" show_all="0"}
       
       
       
       
       
        {menu start_page="inschrijven" show_all="0"}
       
       

       
       
          {menu start_page="contact" show_all="0"}
       
       
   


Please respond :D

Re: Submenu Problem

Posted: Thu Apr 15, 2010 10:51 am
by Augustas
and how does your page hierarchy looks like?

Re: Submenu Problem

Posted: Thu Apr 15, 2010 11:24 am
by rkrijgsman
What do you mean??

I'm new to CMSMS so what do I show when someone asks for a Page Hiarchie??

The picture below?

Re: Submenu Problem

Posted: Thu Apr 15, 2010 11:47 am
by Augustas
you could do like this:
{menu start_element=1.1 show_root_siblings="1" show_all="0"}

But the best would be to write a smarty loop in MenuManager, which would go through all your pages and create the menu block.
An example of such {foreach} loop you can find in the template folder of MenuManager module.
E.g. this file: [CMSMS instalaltion folder]/modules/MenuManager/templates/cssmenu.tpl

Re: Submenu Problem

Posted: Thu Apr 15, 2010 1:12 pm
by rkrijgsman
{menu start_element=1.1 show_root_siblings="1" show_all="0"}

That works for now, Thank You!

I'll look at the {foreach}