Four "sites" within one site

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
rod
New Member
New Member
Posts: 2
Joined: Wed Mar 17, 2010 12:45 am

Four "sites" within one site

Post by rod »

Hi,

I am new to CMSMS and am trying to accomplish something that I don't know if it is possible.

I have a site with a home page that has a flash map on it to select different locations accross the US. So I have one site that is broken into, say four sites.

I want the ability to show a unique menu on each "site" and I want each of my clients to be able to add and take away items in their menu.

I tried making a template for location 1 and adding this to it
{menu items="location1page1, location1page2"}
also tried
{menu includeprefix="location1page1", location1page2}

And then made a different page template for location 2 and added
{menu items="location2page1, location2page2"}
also tried
{menu includeprefix="location1page1", location1page2}

and that works perfectly but the problem is, I don't want my client to have to go into the HTML every time they add a page and add the page alias to this list. is there a way that i can use the extra1 attribute to give it "location1" and therefore it would appear only in their "site".

therefore my clients only have to add that attribute to the new page as they are adding it and it will then appear in their menu and not in the others.
User avatar
Nullig
Power Poster
Power Poster
Posts: 2380
Joined: Fri Feb 02, 2007 4:31 pm

Re: Four "sites" within one site

Post by Nullig »

Why not break your menu down into locations using a Section Header, like this

1 - Location 1 <-- Section Header
    1.1 Page 1
    1.2 Page 2
    1.3 Page 3
    etc.....
2 - Location 2 <-- Section Header
    2.1 Page 1
    2.2 Page 2
    2.3 Page 3
    etc.....
3 - Location 3 <-- Section Header
    3.1 Page 1
    3.2 Page 2
    3.3 Page 3
    etc.....
etc...

Then your menu calls would be:

For location 1 - {menu template='whatever template you use' start_element='1.1' show_root_siblings='1'}
For location 2 - {menu template='whatever template you use' start_element='2.1' show_root_siblings='1'}
For location 3 - {menu template='whatever template you use' start_element='3.1' show_root_siblings='1'}

Nullig
rod
New Member
New Member
Posts: 2
Joined: Wed Mar 17, 2010 12:45 am

Re: Four "sites" within one site

Post by rod »

That worked exactly the way I wanted. I really appreciate your quick reply and your help.

Thank you
Post Reply

Return to “CMSMS Core”