Scalemotorcars
02-26-2019, 04:58 PM
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 1551211553 at 1551211553 ---------------
[HOW-TO vB4] Create a Widget using Plugins and Templates (https://vborg.vbsupport.ru/showthread.php?t=236245&highlight=widgets)
Followed the directions and no luck. Anyone know how to use a custom template in a widget?
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 1551211553 at 1551211553 ---------------
[HOW-TO vB4] Create a Widget using Plugins and Templates (https://vborg.vbsupport.ru/showthread.php?t=236245&highlight=widgets)
Followed the directions and no luck. Anyone know how to use a custom template in a widget?