Webmastersite.net
Register Log In

Custom Pages in Folder

Comments on Custom Pages in Folder

scriptwiki
Member

Usergroup: Customer
Joined: Aug 04, 2005

Total Topics: 11
Total Comments: 47
Posted Jul 19, 2006 - 9:56 AM:

I created a custom page in templates/default/custom/tools.tpl. If I want to display that page, I create a new page in the home directory of WSN Links and place this code in it

<?php
$custom = 'yes';
require ('custom/tools');
require 'index.php';
?>

The thing is, I want to place each of these tools I am making inside a folder called tools. I'm having trouble getting the code to work inside the tools folder.

I tried

<?php
$custom = 'yes';
require ('custom/tools');
require '../index.php';
?>

but it didn't work. Any ideas?
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Jul 23, 2006 - 10:05 AM:

If you want to display it as a distinct PHP file, instead of the normal way, you need to use the hack for showing a custom template anywhere listed in the hacks section of the manual.
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.