PDA

View Full Version : $header to another template?


MarkFoster
03-22-2009, 06:52 PM
I want to replace the "$header" on a page loaded by a template to something else.
I have a template called "header2" that I would want to take it's place, how will I go with changing this? After all "$header2" wont work.

TigerC10
03-22-2009, 07:21 PM
Instead of calling $header, just use this call in its place:


eval('print_output("' . fetch_template('header2') . '");');

MarkFoster
03-22-2009, 07:27 PM
Instead of calling $header, just use this call in its place:


eval('print_output("' . fetch_template('header2') . '");');


It's in a template and not in a file, I just added what you have ther eand there's no header at the site anymore, the text also appears at the very top of the page.

TigerC10
03-22-2009, 07:30 PM
Then you need to use a plugin.


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


Then just call $header2 in your template.

MarkFoster
03-22-2009, 07:32 PM
Then you need to use a plugin.


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


Then just call $header2 in your template.

Thanks it works :)