Log in

View Full Version : Adding Templates


LMimo
11-04-2007, 01:24 PM
I wanted to add a new template and make it available as follows


eval('$mytemplate1 = "' . fetch_template('mytemplate1') . '";');


I have been told I can add this code (above) via a plug-in. I am not really sure how to do this. Is it as simple as creating a file with that one line of code and importing it?

RobDog888
11-04-2007, 06:46 PM
<font color="darkgreen">Yes but you need to specify which hook you are going to use for it. </font>

Kirk Y
11-04-2007, 06:58 PM
AdminCP -> Plugins & Products -> Add New Plugin.

Depending on where you want to use the template, you'll need to change the hook location. You can use "global_start" to make it available in most templates.