vBulletin Mods

The Official vBulletin Modifications Site

Call template using VB Raw in CMS widget?
by Scalemotorcars
26 Feb 2019 18:58

I've looked and I can't seem to find the answer to this one.

How do I call a custom template into a CMS widget?

I've tried creating a plugin and reRegister using vbcms_widget_cmsfcs_page but no luck.


$templater = vB_Template::create('my_template');
$templatevalues['my_template'] = $templater->render();
vB_Template::preRegister('vbcms_widget_static_page', $templatevalues);
Then calling the template in the configure of the widget.

{vb:raw my_template}

--------------- Added 26 Feb 2019 at 20:05 ---------------

[HOW-TO vB4] Create a Widget using Plugins and Templates

Followed the directions and no luck. Anyone know how to use a custom template in a widget?

All times are GMT. The time now is 09:55.

Powered by vBulletin® Version 3.8.13
Copyright © 2019, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.