Home template

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
vinyl
Forum Members
Forum Members
Posts: 149
Joined: Mon Jul 13, 2009 8:18 pm

Home template

Post 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.
carasmo
Power Poster
Power Poster
Posts: 506
Joined: Thu Feb 08, 2007 6:11 pm

Re: Home template

Post 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.
vinyl
Forum Members
Forum Members
Posts: 149
Joined: Mon Jul 13, 2009 8:18 pm

Re: Home template

Post 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.
carasmo
Power Poster
Power Poster
Posts: 506
Joined: Thu Feb 08, 2007 6:11 pm

Re: Home template

Post by carasmo »

However way a person lands on the home page, CMSMS displays the template assigned to it.
vinyl
Forum Members
Forum Members
Posts: 149
Joined: Mon Jul 13, 2009 8:18 pm

Re: Home template

Post 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?
carasmo
Power Poster
Power Poster
Posts: 506
Joined: Thu Feb 08, 2007 6:11 pm

Re: Home template

Post 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.
Last edited by carasmo on Sun Sep 16, 2012 8:26 pm, edited 1 time in total.
vinyl
Forum Members
Forum Members
Posts: 149
Joined: Mon Jul 13, 2009 8:18 pm

Re: Home template

Post by vinyl »

Ah ok, now I get it :) Will go ahead and give that a try! Thanks for the help.

Like your work btw!
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Home template

Post 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...
Post Reply

Return to “Layout and Design (CSS & HTML)”