PDA

View Full Version : fetch_template help


ptmuldoon
03-23-2009, 07:46 PM
Is it possible to print/echo a specific template without including the various header and footer information?

I learned the following, but it prints more than just the specific template

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

Lynne
03-23-2009, 07:58 PM
Do this:
eval('$yourvariablename = "' . fetch_template('custom_template') . '";');

Then enter $yourvariablename into the other template where you want it to show up.

ptmuldoon
03-23-2009, 08:19 PM
Thanks. But I'm trying to include that template into a non-vb page.

Is it possibly to echo out just one template on its own?

Lynne
03-23-2009, 08:35 PM
Just echo $yourvariablename after you eval the template.