Page 1 of 1

Can I change the menu root

Posted: Mon May 18, 2009 1:48 pm
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

Re: Can I change the menu root

Posted: Mon May 18, 2009 6:19 pm
by korpirkor
Try to adapt this: http://forum.cmsmadesimple.org/index.ph ... #msg151841
It is solution for similar problem :-)

Re: Can I change the menu root

Posted: Tue May 19, 2009 8:25 pm
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

Re: Can I change the menu root

Posted: Wed May 20, 2009 12:36 am
by Nullig
Something like this:

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

Nullig