View Full Version : How do you pull other specific template into another template?
DJ XtAzY
12-22-2009, 03:40 PM
Let say I'm editing the vbcms_page template and I create other custom templates. How do I pull other templates into the vbcms_page? I tried like {vb:raw navbar_link} and it didnt work.
ButtKnocker
12-23-2009, 06:26 AM
I'd like to know the answer to that too!
DJ XtAzY
12-25-2009, 05:33 AM
Anyone has an answer to this? I assume this is impossible?
Collussus
12-25-2009, 08:23 AM
Create a plugin, look the whatever hook uses the CMS. Then use:
$template_name = vB_Template::create('template_name')->render();
and
$templater->register('template_name', $template_name);
Just like you would when creating a custom page, but this way you actually just create a template hook.
DJ XtAzY
12-25-2009, 05:37 PM
Ah thank you! So then I can simply call out the template name like this later right? {vb:raw template_name}?
Collussus
12-25-2009, 09:12 PM
Ah thank you! So then I can simply call out the template name like this later right? {vb:raw template_name}?
Yes, you can.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.