ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Multiple home pages

January 24, 2008 3:39pm

Subscribe [4]
  • #1 / Jan 24, 2008 3:39pm

    Todd Moffett

    57 posts

    Im looking for a simple way for a client to switch home pages for different layouts. I see the indicator for master site default page but would like the ability to change to a new one without having to rename or copy new code to the existing. Is there a way to select a template to become the new home page ?

  • #2 / Jan 26, 2008 3:40pm

    Todd Moffett

    57 posts

    Anybody have some bright ideas?

  • #3 / Jan 26, 2008 4:07pm

    tbritton

    714 posts

    Im looking for a simple way for a client to switch home pages for different layouts.

    That’s clear.

    I see the indicator for master site default page

    What indicator is that?

    but would like the ability to change to a new one

    yes…

    without having to rename or copy new code to the existing.

    Totally lost me!

    Is there a way to select a template to become the new home page ?

    I often produce new index page templates with each layout change - named index1, index2, index3, etc., and then provide the client an email with links to those, if that’s what you are meaning.

    Terry

  • #4 / Jan 26, 2008 6:05pm

    Todd Moffett

    57 posts

    On the main template page in the CP there it says “*  Indicates master site default page”. I can see my master site default page and I can assign a new one when I create a new template group. So if I have 3 different template groups that each contain a template of a variation of my home page, how do I switch to a specific one after I already have them created?

  • #5 / Jan 26, 2008 6:15pm

    tbritton

    714 posts

    On the main template page in the CP there it says “*  Indicates master site default page”. I can see my master site default page and I can assign a new one when I create a new template group. So if I have 3 different template groups that each contain a template of a variation of my home page, how do I switch to a specific one after I already have them created?

    I see no other choice than do do so explicitly, naming both the template group and the related index template in your URL.

    <a href="http://mysite.com/index.php/template_group/index">http://mysite.com/index.php/template_group/index</a>

    You could create an embedded template temporarily with the urls to each template group embedded in the indexes of each one for simple switching among them.

    Embedded Template _VersionLinks

    < a href=http://mysite.com/index.php/template_group1/index>Version 1</a>
    < a href=http://mysite.com/index.php/template_group2/index>Version 1</a>
    < a href=http://mysite.com/index.php/template_group3/index>Version 3</a>

    Index Templates snippet

    { embed="weblog_globals/_VersionLinks" }

    Just a thought. I know of no way to automate the changing of the database/ControlPanel via simple links.

    Terry

  • #6 / Jan 26, 2008 6:27pm

    Boyink!

    5011 posts

    Choose a template group, and click “edit group” in the center column.  There is a checkbox for “Make the index template in this group your site’s home page?”.

  • #7 / Jan 26, 2008 6:53pm

    tbritton

    714 posts

    I think he may be looking for a way to do Theme-switching (as he mentions giving the Client this capability), which isn’t supported in EE. I understand (but haven’t used) that CSS switching is possible, however.

    Terry

  • #8 / Jan 26, 2008 7:21pm

    Todd Moffett

    57 posts

    Actually that was exactly what I was looking for. I don’t know how I didn’t see that before. Thanks to both for your answers.

  • #9 / Jan 23, 2009 2:32pm

    euetz

    2 posts

    I have a set-up for a site where each page is handled through the Pages module, even the home page.

    I created an entry for the home page, set the Pages URI to ‘/’, and then selected the appropriate template. (mostly done to keep all pages in a nice, neat row for editors). I have different templates for each section of the site, and a template just for the home page.

    For your case, an editor would just need to choose a new template in the Pages tab to change it.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases