Feather uses a strict convention for resolving the views for widgets. This article describes the different ways to add a view to a widget and what are the priorities for the different approaches.
Following is a list of the different ways to resolve views for widgets. The list is ordered by priority from highest to lower:
You can have several packages with different package names. A page template can use one package. For more information, see Feather: Base page templates on layout files.
The extension of the template file depends on your view engine. For Razor the extension is .cshtml, for WebForms the extension is .aspx.
After you create a new template, you can map it to the widget by opening the widget designer and selecting the template in the dropdown boxes for the list template or the detail template .
The following image displays how Airport templates for list and detail views are mapped to the Airports custom MVC widget:
By design, the MVC controls that come out-of-the-box with Feather, such as Navigation, ContentBlock, or New, have corresponding assemblies that are referenced by the SitefinityWebApp. In each of the assemblies the views have their Build action set to Embedded resource. This way all views are included in the assemblies. This is the final place where Feather searches to resolve the widget view.
Back To Top