Thread: Admin Templates
View Single Post
  #4  
Old 03-25-2008, 11:36 AM
 
deffe deffe is offline
 

Member
  
Join Date: Oct 2007
Posts: 27
 

Default Re: Admin Templates

Figured it out. To add a new page within the administration portal and keep the administration template do the following.
  1. Open /skin1/single/home.tpl
  2. Add an else if statement similar to the following
  3. Code:
    {elseif $main eq "test"}{include file="test.tpl"}
  4. Create a new template in /skin/test.tpl
  5. Create a new administration page /admin/test.php and add the following code
  6. Code:
    <?php require "./auth.php"; require $xcart_dir."/include/security.php"; $smarty->assign("main", "test"); $smarty->assign("tpldir", $tpldir); include $xcart_dir."/modules/gold_display.php"; func_display("test.tpl",$smarty); ?>
  7. The second property in the $smarty->assign method calls the expression assigned in the elseif statements in /skin1/single/home.tpl
__________________
Version 4.3.2
Reply With Quote