I'm struggling with getting data from a variable into one of the stock templates. Here's what I've done:
Created a custom plugin with the hook location set to "global_start":
$roscohtml = "<div>HELLO WORLD!</div>";
error_log($roscohtml);
vB_Template:

reRegister('header',array('roscohtml '=>$roscohtml));
Then I customized the header template to contain this:
<div class="above_body"> <!-- closing tag is in template navbar -->
<div>test before</div>
{vb:raw roscohtml}
<div>test after</div>
Unfortunately the variable isn't being output. I do see the contents in the error log, so I know it's firing.
Any tips?
Thanks,
Rosco
--------------- Added [DATE]1302039172[/DATE] at [TIME]1302039172[/TIME] ---------------
OK, I think I found the problem - the global_start hook is not the right place for this to live. I moved my code to the parse_templates hook and the data is now available.
Is there a document which outlines the best way to leverage the hooks, or at least where each is called in the flow?
Rosco