Mapping a widget template to a user control in SiteFinity 5

Posted by Community Admin on 04-Aug-2018 14:12

Mapping a widget template to a user control in SiteFinity 5

All Replies

Posted by Community Admin on 04-Apr-2012 00:00

I'm using SiteFinity 5.0.  I created a custom module, using the module builder, called Promos.  It's content type is called Promo.

Next, I created a new widget template called PromoFlexSpace.  I basically copied the auto-generated template for a single Promo display and changed it a bit.

What I would like to do is globally map this widget template to a user control, so that any time that template is selected, it actually uses my user control.  I've found how to do this for an individual item:
http://www.sitefinity.com/documentation/documentationarticles/designer-s-guide/widget-templates/using-external-widget-template-file 
http://www.sitefinity.com/blogs/joshmorales/posts/11-05-10/mapping_external_templates_for_sitefinity_4_widgets.aspx 

And I found something that came close to explaining what I'm trying to do on a global level:
http://www.sitefinity.com/blogs/joshmorales/posts/11-07-26/customizing_sitefinity_4_controls_with_the_viewmap.aspx 

But I haven't found a way to accomplish what I'm trying to do yet (apologies if that last link actually does explain it - I need a better breakdown if it does).

What I've tried so far is going into the advanced settings > controls > view map and adding an entry there, but I can't find a value for HostType that works.

Posted by Community Admin on 04-Apr-2012 00:00

Update:  The 2nd solution in the 2nd post works, but I would love to not have a user control named OpenAccessDataProvider,D0CC1EB5DA984B4482009C69AAF3A2D5.ascx.  :)

Still interested in a solution that involves using the View Map.

Posted by Community Admin on 05-Apr-2012 00:00

Hi Jeremy, while I believe the issue with setting an external template for a custom module widget was resolved in 5.0, I think it is still outstanding for the ViewMap, at least according to this PITS entry: http://www.telerik.com/support/pits.aspx#/details/Issue=10566

I will double check the status and let you know if there is any existing workarounds, thank you for your feedback!

Posted by Community Admin on 28-Apr-2012 00:00

Any news on this? I have commented on other posts around this topic hoping someone can shed some light.

Posted by Community Admin on 28-Apr-2012 00:00

What I've tried so far is going into the jade advanced settings > controls > view map and adding an entry there, but I can't find a value for HostType that works.

This thread is closed