IMPORTANT: This version of Sitefinity CMS is out of support and the respective product documentation is no longer maintained and can be outdated. Use the version selector to view a supported product version.
Feather widgets are standard MVC widgets that you can find in the widget toolbox. You place the widgets on any page or template to add specific content or functionality. Each Feather widget provides you with options to configure the widget's preferences in the user interface. For example, the News widget has options for selecting which news to display, how to sort them, and how many news items are rendered on the page. Following is an example of how the options dialog looks like:
As a frontend developer, Feather enables you to control the rendered HTML and modify the markup of Feather widget templates according to your preferences.
All Feather widget templates are located in the ResourcePackages folder in the root of your project. There is a dedicated folder for the Bootstrap framework, supported by Feather.
ResourcePackages
For more information about frontend frameworks, see Feather: Frameworks integration.
To edit widget templates, you do not need to open the file in Visual Studio and build the project and replace .dll files. You only need to edit the markup of the widget.
.dll
In the following example, you are using the Bootstrap package and you modify the markup of the News widget. To do so:
%project-root%/ResourcePackages/Bootstrap/MVC/Views/News
As a result, the template of the News widget is changed.
From the backend
To create a new widget template for the Login form widget in the backend:
<type of widget>
NOTE: The name of your template must start with <type of widget>.
EXAMPLE: If you are creating a template for Login form widget, choose LoginForm (MVC) and start your template name with LoginForm. Once you create the new template, you can use it when you open the Login form widget for editing.
In the file system
You can also create a new widget template by adding it directly into the file system:
~\MVC\Views
<widget type>
.cshtml
EXAMPLE: If you are creating a template for Login form widget, create aLoginForm folder. IncludeLoginWidget in the name of your new view file.
LoginForm
The following example demonstrates how to create new widget template when you are using the Bootstrap package.
List.[ViewName].cshtml
Detail.[ViewName].cshtml
NOTE: The view name is the name that is used for the file and how it is displayed in the backend.
As a result, you can see the new widget template in the widget designer when you expand the Template dropdown menu:
Back To Top
To submit feedback, please update your cookie settings and allow the usage of Functional cookies.
Your feedback about this content is important