![]() |
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} |
Cellarius wrote a really good article that you may be interested in - [vB4] Rendering templates and registering variables - a short guide
|
Thanks that was aweosme, Simple three lines into my created plugin and works a charm!
Code:
$templater = vB_Template::create('news'); |
All times are GMT. The time now is 12:51 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:
|