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
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.
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.
0/5
1
2
3
4
5
This thread is closed, so you cannot post a reply.
Comments on Custom Pages in Folder
Member
Usergroup: Customer
Joined: Aug 04, 2005
Total Topics: 11
Total Comments: 47
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?
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
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.