Jake Bunce
Mon 28th Nov '05, 7:28pm
Admin CP -> Plugin System -> Add New Plugin
Create a new plugin for the parse_templates hook location. Use this code:
eval('$var_name = "' . fetch_template('template_name') . '";');
Then you can use:
$var_name
...in the templates and it will parse to the contents of the template_name template. In some templates you might need to use the global scope:
$GLOBALS[var_name]
Create a new plugin for the parse_templates hook location. Use this code:
eval('$var_name = "' . fetch_template('template_name') . '";');
Then you can use:
$var_name
...in the templates and it will parse to the contents of the template_name template. In some templates you might need to use the global scope:
$GLOBALS[var_name]