Knowledgebase

Home » Item #346

Using an alternative template on the home page

Item: #346
Date: 19 Dec 2002
Applies to
v4
v5

Question

I want the front page of my store to look different to the rest of the site. How can I use a different template on the front page to achieve this? For example, my normal page template includes features that I don't need on my home page and has the logo less prominent that I want on the front page of my site.

Answer

To modify CactuShop to use a different template on the home page (or another page if you wish):

1. Set a constant at the top of the default.asp page that you can check later, such as strHomePage = "y"
2. Towards the bottom of buildpage.asp, there are two constants set:

templateimagesfolder = ...
templatelocation = ...


You should be able to recode so that if strHomePage = "y" (i.e. this is the default page), the template values will be set to the alternative skin.

Another method to consider is modifying the home page so as not to use any template. This will make it impossible to use content such as the minibasket on the home page however so the choice depends on exactly what is to be included on your front page.

Can't find the answer you need? Click here to open a support ticket.

« Back