Modifying Templates [message #8749] |
Fri, 21 February 2003 17:20  |
darkpenguin
 Messages: 1 Registered: February 2003
Karma: 0
|
Junior Member |
|
|
Is there any documentation available for how to edit the template files? I've looked at the online docs and it mentions how to include one template file within another using a certain tag. If that is the only way to do it, how do I format a file so it will be a template file?
I tried to just include on of my .php files but it complained about not having a MAIN BODY or something of the sort.
Thanks!
|
|
|
Re: Modifying Templates [message #8764 is a reply to message #8749] |
Fri, 21 February 2003 21:53   |
Ilia
 Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Each templetable file consists of 2 files
.tmpl file, which contains the HTML and the .php.t or .inc.t file which contains the source. If you want to include a PHP file you can either modify existing .php.t or inc.t file and put include "your_file_name.php" or you need to make a template, in which case refer to existing examples.
FUDforum Core Developer
|
|
|
|
Re: Modifying Templates [message #9626 is a reply to message #9563] |
Sun, 13 April 2003 15:08  |
Ilia
 Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
The position depends on what it does...
If it outputs data it should be somewhere after INDEX_PAGE, otherwise you can put it anywhere.
FUDforum Core Developer
|
|
|