What is the best hook to use to hook the header so I can pre register, I tried global_bootstrap complete but this does not register the variable before the header.
--------------- Added [DATE]1271277907[/DATE] at [TIME]1271277907[/TIME] ---------------
location: global_bootstrap_complete
Code:
require_once('/opt/www/riu/staging/featured_articles.php');
$templater = vB_Template::create('custom_featured_articles');
$templater->register('featart', $featured_articles);
$templatevals['featart'] =$templater->render();
//check if we are home
if($_SERVER['REQUEST_URI'] == '/'){
$templatevals['isthehome'] = 'Yes';
}
vB_Template::preRegister('header', $templatevals);
then in the header template
The code is being executed cause I test it with var_dump and if I register it to another template that works fine as well just not in the header
Any help is appreciated.
--------------- Added [DATE]1271279210[/DATE] at [TIME]1271279210[/TIME] ---------------
Ok i fixed that part i changed the hook to parse_templates, now is there a way for this plugin to only load on the homepage rather then on article pages/admin pages etc...