Page 1 of 1

Home template

Posted: Sun Sep 16, 2012 8:02 am
by vinyl
I am working on a intro for a website which uses a full screen div. The code for this is in the home template. Is it possible to hook a different template up to the home links on the website? Switching CSS would also do the trick.

Re: Home template

Posted: Sun Sep 16, 2012 7:42 pm
by carasmo
make a home template. Don't make that the default template. Make a subpage template for the other pages, make that the default template.

There's also other ways.

Re: Home template

Posted: Sun Sep 16, 2012 7:47 pm
by vinyl
Does the default template then also serves for the home page if some presses "home"? Cause I think it will use the home template for that again.

Re: Home template

Posted: Sun Sep 16, 2012 7:52 pm
by carasmo
However way a person lands on the home page, CMSMS displays the template assigned to it.

Re: Home template

Posted: Sun Sep 16, 2012 8:11 pm
by vinyl
So that would mean it is not possible..

If you go to xyz.com it will use the home template with intro. After that you go to a subpage and click "home" which will use the home template with intro again.

No way to change the behavior of the home link or reroute it to a different "home" page?

Re: Home template

Posted: Sun Sep 16, 2012 8:17 pm
by carasmo
Yes, it's possible. The low tech way I can think of offhand is:

Create main page this is the home page that you want people to see when they first arrive at your site. Make this alias "intro" or something

This is the default page for the site, when they reach it through the main url: "http://sitename.com

Then create the normal home page and the rest of the pages. These can use any template(s). I generally make a home template and a subpage template (the default template, not the default page).

In your menu call in the templates, exclude the page alias "intro" see menu manager instructions.

Usually, if it works out that way, I make a coming soon template, that does not include the menu call, that is the default while I work on the rest of the site. When it goes live, I remove the coming soon, then I make the home page the default page. In the same way you can have an intro page, a home page, and the secondary pages.

Re: Home template

Posted: Sun Sep 16, 2012 8:35 pm
by vinyl
Ah ok, now I get it :) Will go ahead and give that a try! Thanks for the help.

Like your work btw!

Re: Home template

Posted: Mon Sep 17, 2012 5:49 pm
by Dr.CSS
You can make an 'intro' page the 'default' home page and just set it to not show in the menu, the only place it will mess up is if you use {cms_selflink dir='start'} in the header h1 like the default templates do...