PDA

View Full Version : How do you pull other specific template into another template?


DJ XtAzY
22 Dec 2009, 16:40
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
23 Dec 2009, 07:26
I'd like to know the answer to that too!

DJ XtAzY
25 Dec 2009, 06:33
Anyone has an answer to this? I assume this is impossible?

Collussus
25 Dec 2009, 09:23
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
25 Dec 2009, 18:37
Ah thank you! So then I can simply call out the template name like this later right? {vb:raw template_name}?

Collussus
25 Dec 2009, 22:12
Ah thank you! So then I can simply call out the template name like this later right? {vb:raw template_name}?

Yes, you can.