Did this article resolve your question/issue?



MVC: How to customize built in widget with a property controlled by the designer

« Go Back


TitleMVC: How to customize built in widget with a property controlled by the designer
URL NameHow-to-customize-built-in-MVC-widget-with-a-property-controlled-by-the-designer
Article Number000136138
EnvironmentProduct: Sitefinity
Version: 9.x, 10.x, 11.x, 12.x, 13.x
OS: All supported OS versions
Database: All supported Microsoft SQL Server versions
Question/Problem Description
How to customize an existing MVC widget to add custom property which is later controlled from the designer?
How to extend built-in feather widget with a property?
How to add checkbox control on contents widget designer backend view (DynamicContentListViewModel) to manage some functionality on templates?
Steps to Reproduce
Clarifying Information
Error Message
Defect/Enhancement Number
This task requires few extensions according to the MVC pattern with C# for the model, Razor for the Views, and AngularJS for the designer logic.
  1.  Extend the model of the widget to include the property, and register the new model using dependency injection in Global.asax file. Check:
        Check the attached sample where this is achieved for the Blog post widget.
The source code for the widgets used in Feather is available to download from GitHub, Sitefinity Feather widgets By downloading the widgets, users are not only able to modify the templates of these widgets but will be able to add logic to the current functionality of the widgets. These customized widgets can then be registered in Sitefinity as new widgets
Last Modified Date6/17/2021 10:20 AM
Disclaimer The origins of the information on this site may be internal or external to Progress Software Corporation (“Progress”). Progress Software Corporation makes all reasonable efforts to verify this information. However, the information provided is for your information only. Progress Software Corporation makes no explicit or implied claims to the validity of this information.

Any sample code provided on this site is not supported under any Progress support program or service. The sample code is provided on an "AS IS" basis. Progress makes no warranties, express or implied, and disclaims all implied warranties including, without limitation, the implied warranties of merchantability or of fitness for a particular purpose. The entire risk arising out of the use or performance of the sample code is borne by the user. In no event shall Progress, its employees, or anyone else involved in the creation, production, or delivery of the code be liable for any damages whatsoever (including, without limitation, damages for loss of business profits, business interruption, loss of business information, or other pecuniary loss) arising out of the use of or inability to use the sample code, even if Progress has been advised of the possibility of such damages.