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

Forums / General Discussions / Using Sitefinity Widget Templates with external content

Using Sitefinity Widget Templates with external content

3 posts, 0 answered
  1. Mark
    Mark avatar
    147 posts
    Registered:
    01 Jun 2010
    06 Apr 2013
    Link to this post
    I'd like to be able to create widget that has the ability to choose a widget template from a designer. My widget has a single view right now and is pulling content from an external source and display an employee's full profile information. I'd like to extend the widget so I can choose a widget template "Full Bio", "Photo Only", "Short Bio" and then be able to edit the templates in the Widget Template editor. 

    I've found this blog to be somehwhat helpful, but I'd really appreciate if someone at Telerik could expand upon it with some sort of mechanism for multiple templates: http://www.sitefinity.com/blogs/slavoingilizov/posts/slavo-ingilizovs-blog/2012/09/21/making-your-widget-templates-editable-through-the-ui

    Any help would be greatly appreciated.
  2. Mark
    Mark avatar
    147 posts
    Registered:
    01 Jun 2010
    10 Apr 2013 in reply to Mark
    Link to this post
    Come on! Someone has surely done something similar?! Telerik?
  3. Victor Velev
    Victor Velev avatar
    1345 posts
    Registered:
    06 Jul 2015
    10 Apr 2013
    Link to this post
    Hello Mark,

    If you have created your widget and designer already, you can still add several views for your widget designer, which need to inherit the ContentViewDesignerView.

    You can have a look at the example in our SDK - the Products module - ProductDesigner.cs. We add the views of the designer manually in the AddViews() method. By adding a new view, it will be available for styling and additional logic, for example choosing different templates.

    All the best,
    Victor Velev
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
3 posts, 0 answered