Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 16 Nov 2009, 12:11
ThorstenA's Avatar
ThorstenA ThorstenA is offline
 
Join Date: Nov 2004
Arrow Showing variable from template:headinclude from hook:global_start

How can I show up a variable in template headinclude from the plugin global_start? I do not have created any custom template like my_custom_template shown in the code. Please advice me how can I put the variable $car in headinclude. Thanks!

plugin global start
$car ='Porsche';
$templater = vB_Template::create('my_custom_template');
$templater->register('car', $car);
$car = $templater->render();

template: headinclude
(...)
{vb:raw car}
(...)


Why doesn't it work? Thanks!
Reply With Quote
  #2  
Old 16 Nov 2009, 12:46
Shadab's Avatar
Shadab Shadab is offline
 
Join Date: Apr 2007
Location: Bhopal
Real name: Shadab
Try this in the plugin:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote
  #3  
Old 16 Nov 2009, 12:49
ThorstenA's Avatar
ThorstenA ThorstenA is offline
 
Join Date: Nov 2004
That works great!!! Thank you very much!
Reply With Quote
  #4  
Old 16 Nov 2009, 12:56
Shadab's Avatar
Shadab Shadab is offline
 
Join Date: Apr 2007
Location: Bhopal
Real name: Shadab
You're welcome.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 03:34.

Layout Options | Width: Wide Color: