PDA

View Full Version : Tutorial: Custom Home Page + Extra Pages


IntroSites
11-08-08, 01:03
Adding a custom Home Page plus extra blank pages in Shop Window Client V2:

As always Back up your files before you start.

For this example we will use "about" & "contact" as our extra pages.

Open index.tpl

Find:

{include file="elements`$DIRECTORY_SEPARATOR`hot_picks.tpl"}

Before it add:


{if $smarty.get.page == about}
{include file="elements`$DIRECTORY_SEPARATOR`about.tpl"}
{elseif $smarty.get.page == contact}
{include file="elements`$DIRECTORY_SEPARATOR`contact.tpl"}
{else}
{include file="elements`$DIRECTORY_SEPARATOR`homepage.tpl"}
{/if}

Save index.tpl:

create 3 new .tpl files named:

hompage.tpl
about.tpl
contact.tpl

You can add HTML or Smarty Tags in these files

Upload these .tpl files to your Template Elements directory:
eg: templates/default/elements

In page_header.tpl create links to your new pages like so:


<a href="/index.php?page=contact">Contact</a>
<a href="/index.php?page=about">About</a>


The standard Hompage will now include homepage.tpl by default


DEFAULT THEME ONLY - Modified example files attached (use at your own risk)

Hope this is of help.

GeorgeGaz
11-08-08, 10:50
Great stuff Intro!

Thanks for sharing :)

benfriedman
17-02-09, 14:17
Thanks for the great tip!

How do i get rid of the Hot Picks from these extra pages?

Cheers

90numbers.com
28-02-09, 20:41
Brill thanks for sharing