Topic: Blank Branded Page for your Site
This example will add a blank formatted page to your site. For this example we will add a blank page
named login so that we can add the login box in a later tutorial.
1) Add entry to index.php on the root for page
a) Find this code
switch($page)
{
// home
case '':
require_once 'page_home.php';
$flag = 1;
break;b) Insert this entry in the case statement. *It can go anywhere in the CASE, but I put it at the top
for easy ref while troubleshooting.
// login page
case 'login':
require_once 'page_login.php';
$flag = 1;
break;2) Create page named page_login.php on the root
3) Add code:
<?php
$template = 'login.tpl';
?>4) Create page named login in the /_templates/default/ directory
5) Add code:
{include file="header.tpl"}
</div>
</div>
{include file="footer.tpl"}6) open browser and go to http://<yoursite>/login. You should now see a blank formatted page
with the site branded header and footer.
7) Modify page contents as necessary
8) Enjoy !
Next Step(s):
A tutorial on how to add the link for this new page to the site.
NOTE: I want to replace the
widgets item in the header and footer with this new page, so expect that if I post a tutorial
on howto add the link...that is what I'll post. If anyone else has a quick and easy answer,
please feel free to post it.