Using Sitefinity Widget Templates with external content
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: www.sitefinity.com/.../making-your-widget-templates-editable-through-the-ui
Any help would be greatly appreciated.
Come on! Someone has surely done something similar?! Telerik?
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