The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Adding a template within a template
I have created a new template called "news" within it it has a generic news layout that i want to be able to include in other certain templates. How can i register this template so that in a certain custom template i could do the following
Code:
{vb:raw news} |
#2
|
||||
|
||||
Cellarius wrote a really good article that you may be interested in - [vB4] Rendering templates and registering variables - a short guide
|
#3
|
|||
|
|||
Thanks that was aweosme, Simple three lines into my created plugin and works a charm!
Code:
$templater = vB_Template::create('news'); $templatevalues['news'] = $templater->render(); vB_Template::preRegister('FRONTPAGE', $templatevalues); |
Благодарность от: | ||
Lynne |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|