Can I change the menu root

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
shawl01
New Member
New Member
Posts: 2
Joined: Mon May 18, 2009 1:28 pm

Can I change the menu root

Post by shawl01 »

Hi all CMSMS users.

A while ago I made a simple site with a menu based on the horizontal menu supplied with cmsms.  I now want to split this site into two distinct areas (sites) where on the first page you pick which bit you want.

My main problem is the menu as I want this to be site spaciffic.  I had the idea that I could build the two sites grouped under a sub content eg. site 1 home to be 1 and site 1 menu items to be 1.1, 1.2, 1.3, etc. and sub menu items to be 1.1.1, 1.1.2, etc.

My main problem is how do I get the menu to build using 1 or 2 as the root rather than the real root?

Hope that makes sense  ???

Thanks
Luke
User avatar
korpirkor
Forum Members
Forum Members
Posts: 100
Joined: Sun Oct 28, 2007 1:15 pm
Location: Poland, Warsaw

Re: Can I change the menu root

Post by korpirkor »

Try to adapt this: http://forum.cmsmadesimple.org/index.ph ... #msg151841
It is solution for similar problem :-)
[url=http://www.polishwebdesign.pl/]Polish WebDesign Cezary Nowak
Projektowanie stron WWW[/ur]
shawl01
New Member
New Member
Posts: 2
Joined: Mon May 18, 2009 1:28 pm

Re: Can I change the menu root

Post by shawl01 »

Hi Korpirkor,

Many thanks for your response, that kind of worked but not quite.  Let me try and explain.

In a normal situation, items 1, 2, 3, 4 etc. all display along the top

I want to change it to make the root = 1 and so all items 1.1, 1.2, 1.3, 1.4, etc. display along the top.

By using the start page parameter it can produce only one single menu eg. it puts 1 along the top and 1.1, 1.2, 1.3,1.4, etc become sub-menus of that menu.

I have re-read the help file but again no joy  :(

Can anyone add any more??

Thanks again
Luke
User avatar
Nullig
Power Poster
Power Poster
Posts: 2380
Joined: Fri Feb 02, 2007 4:31 pm
Location: Comox Valley, BC

Re: Can I change the menu root

Post by Nullig »

Something like this:

{menu template="cssmenu.tpl" start_element="1.1" show_root_siblings="1"}

Nullig
Post Reply

Return to “Developers Discussion”