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.
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.
In the following example, you are using the Bootstrap package and you modify the markup of the News widget. To do so:
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:
EXAMPLE: If you are creating a template for Login form widget, create aLoginForm folder. IncludeLoginWidget in the name of your new view file.
The following example demonstrates how to create new widget template when you are using the Bootstrap package.
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:
Recommendations for managing widget templates
Following are a few best practices when working with widget templates in Feather:
NOTE: You can do the same grid widget templates. You can move the project-specific grid widget templates to the /GridSystem/Templates folder, located in the root SitefinityWebApp folder of the project.
Back To Top