Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 26 Feb 2019, 17:58
Scalemotorcars's Avatar
Scalemotorcars Scalemotorcars is offline
 
Join Date: Mar 2006
Real name: Daniel
Call template using VB Raw in CMS widget?

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:reRegister('vbcms_widget_static_page', $templatevalues);
Then calling the template in the configure of the widget.

{vb:raw my_template}

--------------- Added 26 Feb 2019 at 19: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?
__________________
ScaleMotorcars.com Large scale model building at its best. Check it out.

Last edited by Scalemotorcars; 26 Feb 2019 at 18:07.
Reply With Quote
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
vBulletin CMS Widgets 3x CMS widget : Widget with 3 tabs, like on Blogs page. Vaupell vBulletin 4.x Add-ons 55 23 Oct 2012 22:06



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 02:38.

Layout Options | Width: Wide Color: