For developers: Create a designer for an MVC widget
WebForms based widgets in Sitefinity CMS are ASP.NET controls, whose properties can be edited through the backend UI. The screens that edit these properties are called designers. MVC based widgets do not have a control class, but have a controller class which implements the logic. Sitefinity CMS allows you to set the values of controller properties in the backend.
For more information, see For developers: Implement properties in the controller.
If you want to create a custom UI to edit these properties, you can create custom designers for MVC widgets.
Create the designer
You create a custom designer for an MVC widget in the same way as a designer for a WebForms widget.
For more information about creating designers, see:
You can also use Sitefinity CMS Thunder. For more information, see Thunder: Create widget designers
Associate the designer with the MVC widget
Sitefinity CMS knows which designer to load for your widget by reading an attribute of the controller class. This attribute is called ControlDesigner
, and it must specify the full .NET type of your designer class.
EXAMPLE: A sample attribute looks like this:
[Telerik.Sitefinity.Web.UI.ControlDesign.ControlDesigner(typeof(MyCustomWidgetDesigner))]
For more information, see
For developers: Create the controller.