1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Mapping a widget template to a user control in SiteFinity 5

Mapping a widget template to a user control in SiteFinity 5

5 posts, 0 answered
  1. Jeremy
    Jeremy avatar
    3 posts
    Registered:
    23 Jul 2011
    04 Apr 2012
    Link to this post
    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.
  2. Jeremy
    Jeremy avatar
    3 posts
    Registered:
    23 Jul 2011
    04 Apr 2012
    Link to this post
    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.
  3. SelAromDotNet
    SelAromDotNet avatar
    912 posts
    Registered:
    18 Jul 2012
    05 Apr 2012
    Link to this post
    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!
  4. Axe
    Axe avatar
    16 posts
    Registered:
    11 Feb 2007
    28 Apr 2012
    Link to this post
    Any news on this? I have commented on other posts around this topic hoping someone can shed some light.
  5. Jade30
    Jade30 avatar
    1 posts
    Registered:
    28 Apr 2012
    28 Apr 2012
    Link to this post
    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.
5 posts, 0 answered