User Tools

Site Tools


creating_and_adding_custom_pages

This is an old revision of the document!


Creating and Adding Custom Pages

This tutorial is about creating and adding custom pages to your Etano site. The tutorial covers 2 scenarios, creating a wide page with no left menu, and creating a page with the left menu.

1. Creating a wide page with no left menu.

<?php
/******************************************************************************
Etano
===============================================================================
Software by:                DateMill (http://www.datemill.com)
Copyright by:               DateMill (http://www.datemill.com)
Support at:                 http://www.datemill.com/forum
*******************************************************************************
* See the "docs/licenses/etano.txt" file for license.                         *
******************************************************************************/

require 'includes/common.inc.php';
require _BASEPATH_.'/includes/user_functions.inc.php';
require _BASEPATH_.'/skins_site/'.get_my_skin().'/lang/login.inc.php';

$tpl=new phemplate(_BASEPATH_.'/skins_site/'.get_my_skin().'/','remove_nonjs');

$tpl->set_file('content','mypage.html'); 
$tpl->process('content','content');

$tplvars['title']='My Page Title'; 
$tplvars['page_title']='My Page Title';
$tplvars['meta_keywords']='your, list, of, keywords'; 
$tplvars['meta_diz']='your page description';
$tplvars['page']='mypage'; 
$tplvars['css']='mypage.css';
include 'frame.php'; 
creating_and_adding_custom_pages.1487221999.txt.gz · Last modified: 2017/02/16 05:13 by admin