Submenu Problem

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
rkrijgsman
New Member
New Member
Posts: 3
Joined: Thu Apr 15, 2010 8:27 am

Submenu Problem

Post 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
User avatar
Augustas
Forum Members
Forum Members
Posts: 241
Joined: Wed Oct 17, 2007 6:09 pm
Location: the world

Re: Submenu Problem

Post by Augustas »

and how does your page hierarchy looks like?
http://FollowTheRoad.com/ - living on the road...
http://www.kligys.com/ - asmeninis blog'as...
rkrijgsman
New Member
New Member
Posts: 3
Joined: Thu Apr 15, 2010 8:27 am

Re: Submenu Problem

Post 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?
Attachments
Capture.JPG
User avatar
Augustas
Forum Members
Forum Members
Posts: 241
Joined: Wed Oct 17, 2007 6:09 pm
Location: the world

Re: Submenu Problem

Post 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
http://FollowTheRoad.com/ - living on the road...
http://www.kligys.com/ - asmeninis blog'as...
rkrijgsman
New Member
New Member
Posts: 3
Joined: Thu Apr 15, 2010 8:27 am

Re: Submenu Problem

Post 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}
Post Reply

Return to “Developers Discussion”