Feather: Enable designers for Thunder widgets
With Feather, you can work with MVC widgets created with Sitefinity CMS Thunder in Visual Studio. By default, once you setup Sitefinity CMS Thunder, the system installs a template named Sitefinity CMS MVC Widget with Designer
in the Add new item dialog in your Visual Studio project. Optionally, Thunder also creates a default Web Forms based widget designer and registers the widget in the toolbox. To load Feather widget designers instead of the default Thunder ones, you need to make sure this option is not enabled.
NOTE: If you do not want Thunder to automatically create a widget designer, in the respective Thunder dialogue make sure you deselect the Create a designer checkbox.
To switch your MVC Thunder widgets to work with the Feather designers, follow the procedure:
- In the
AssemblyInfo.cs
file of your project, add the ControllerContainer
attribute: -
using Telerik.Sitefinity.Frontend.Mvc.Infrastructure.Controllers.Attributes;
[assembly: ControllerContainer]
- If you selected the Create a designer checkbox, remove all associations to the old designer from your widget.
Delete the ControlDesigner
attribute from your controller class. - Build your project.
As a result, Thunder loads the Feather widget designers. You can now continue working with Feather and create designer view. For details, see Feather: Create custom designer views.