Great article!
but i have a problem.
I have a template which i want to show inside another template, and it seems to work with every template except for the header.
This is the plugin i used:
PHP Code:
$templateH = vB_Template::create('TopPanel')->render();
vB_Template::preRegister('header', array('TopPanel' => $templateH));
$TL = vB_Template::create('TopPanel')->render();
vB_Template::preRegister('vbcms_page', array('TopPanel' => $TL));
$TL2 = vB_Template::create('BarH')->render();
vB_Template::preRegister('vbcms_page', array('BarT' => $TL2));
the hook location is: process_templates_complete.
of course i have a template called TopPanel which i created, and it works great in vbcms_page for example but not in header.
Do you have an idea why is that?
Thanks in advance.