baraban
01-21-2006, 07:50 PM
I need to call a $navbar template from a new custom template that I created.
I have tried the following:
1. $navbar
2. $GLOBALS[navbar]
3. Making a plugin that hooks into the parse_templates with the following code.
global $navbar;
eval('$navbar = "' . fetch_template('navbar') . '";');
Neither of these have worked. Anybody know how to actually do this?!!
SOLVED: Turns out that if you do both 2 & 3 together, it works!
Why is this not documented?
I have tried the following:
1. $navbar
2. $GLOBALS[navbar]
3. Making a plugin that hooks into the parse_templates with the following code.
global $navbar;
eval('$navbar = "' . fetch_template('navbar') . '";');
Neither of these have worked. Anybody know how to actually do this?!!
SOLVED: Turns out that if you do both 2 & 3 together, it works!
Why is this not documented?