PDA

View Full Version : Displaying new templates


Varsh
12-05-2008, 11:32 PM
I've been looking through forums and the official documentation, it mentions that the name of the new template you make will be used for displaying the template. Now let's say I created the template "myNewTemplate", I assume that to display this I would simply need to place "$myNewTemplate" in any template.

For instance, in the FORUMHOME template I put "$myNewTemplate" after the body tag, this should presumably display the new template. Unfortunately this isn't working for me and clearly I've overlooked and missed something completely. Could someone just clarify how to display a new template please.

Lynne
12-05-2008, 11:48 PM
You need to eval the template somewhere in the php code:
eval('$myNewTemplate .= "' . fetch_template('my_new_template') . '";');

Varsh
12-05-2008, 11:57 PM
Would this mean that I would have to edit the index.php file directly, or could this be done within the ACP? If in the ACP, how would I go about doing this?

Edit: Found the article about it, thanks for the headsup.