Two layouts in 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
naf
New Member
New Member
Posts: 4
Joined: Thu Oct 20, 2011 7:44 pm

Two layouts in one site

Post by naf »

Hey, I installed CMSMS for my customer and he would like to have two layouts/sites, like "Summer" and "Winter".

Winter site would have text and pages about winter activities and stuff and snowy background.

Summer site would have pages about summer activities and sunny background.

It would require me to do two different menus too, one would have the winter pages and one summer pages. I have two buttons next to my logo to change the winter theme and summer theme.

If you didn't quite get me, see:
http://www.yllas.fi/?season=winter and http://www.yllas.fi/?season=summer

The question
The main thing is, what is the best way to do it?
One way could be like to set all summer pages to "My layout 1" -theme and all winter pages to "My layout 2" -theme, but how about the menu? I would need two separated menus too, one would have only the "My layout 1" -theme pages and one "My layout 2" -theme pages.

I hope you did understand what I'm trying to do here, I would need to do it pretty quickly.
uniqu3

Re: Two layouts in one site

Post by uniqu3 »

Hello and Welcome.

Well i think you answered it already to yourself, the easiest way is to create two different templates and you can select these template for each page when editing a page under "options" tab.

Regarding menu, it is the same in Layout->MenuManager you can create two templates (is markup different or only colorscheme, if it's only colorscheme, you can control it through stylesheet no need for two templates) then in your Template you simply use {menu template='my_summer_theme'} or {menu template='my_winter_theme'}.

Have fun creating the site ;)
naf
New Member
New Member
Posts: 4
Joined: Thu Oct 20, 2011 7:44 pm

Re: Two layouts in one site

Post by naf »

uniqu3 wrote:Hello and Welcome.

Well i think you answered it already to yourself, the easiest way is to create two different templates and you can select these template for each page when editing a page under "options" tab.

Regarding menu, it is the same in Layout->MenuManager you can create two templates (is markup different or only colorscheme, if it's only colorscheme, you can control it through stylesheet no need for two templates) then in your Template you simply use {menu template='my_summer_theme'} or {menu template='my_winter_theme'}.

Have fun creating the site ;)
Oh, it's that easy! Thanks to you so much :)
naf
New Member
New Member
Posts: 4
Joined: Thu Oct 20, 2011 7:44 pm

Re: Two layouts in one site

Post by naf »

Hmm, I tried it now, but how can I have different content in different menus? Also, is there some kind of example menu template to see how to make it.

I would need to make menu with only summer pages, and menu with only winter pages. If something like {menu styles='winter'} would work, it would be extremely cool :D
uniqu3

Re: Two layouts in one site

Post by uniqu3 »

There are few samples yes in "Layout -> MenuManager" and click on right hand side the "Import to database" icon and you will be able to edit these.
Menu is created the way you create pages, so if you add a page it will be shown in menu unless you select under options tab to not show it in menu.
So easy explained, list of pages you see in Backend is same as Menu in Frontend.

What you need is probably a separated page structure like:

1. Summer
1.1 Some summer page
1.2 Some other summer page
2. Winter
2.1 Some winter page
2.2 some other winter page

Then in your Templates you can use {menu start_element='1.1} or {menu childrenof='page_alias_of_Summer'} and so on.
Look at Module help for more Information and Parameter available "Extensions -> Modules -> Some Module -> Help"

If you have CMSMS installed with Sample content, read that content, it comes with plenty useful information.
And for more answers use http://wiki.cmsmadesimple.org/index.php/Main_Page
Post Reply

Return to “CMSMS Core”