![]() |
Brain freeze on vB_Template::preRegister
I have a custom template cportal, this is simple a head and footer template, and i use a php script to fill in between the lines fro outside forum pages. In the php file i have a meta section that i add meta data such as OG: and twiter card info.
I then have it al saved as $mymeta, then i run this vB_Template::preRegister('headinclude', array('mymeta' => $mymeta)); inside the top of the headinclude template i have {vb:raw mymeta} this is not displaying any of the data though? I have spent a couple of hours looking at this, somthing I thought I had working all along but not so. |
if you are trying to inject the data into your cportal template, then you need to add the vb:raw to that template, and change your Register to cportal instead of headinclude.
Code:
vB_Template::preRegister('cportal',array('mymeta' => $mymeta)); Code:
$globaltemplates = array( |
Thank you for the reply, it was after all working but somehow my variable was being over written, something new to track down!
|
All times are GMT. The time now is 01:12 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|