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