Sitefinity .NET Core Renderer comes with a set of built-in widgets, such as Navigation, Content list, and Content block. You can extend these widgets to suit your requirements in the following ways:
NOTE: The source code of the built-in widget is located in the .NET Core widgets GitHub repository.
You can add new or override the existing widget views.
You can do this by placing the file in the directory of your root web application using the following convention: /Views/Shared/Components/{WIDGET_NAME}/{VIEW_NAME}.cshtml
/Views/Shared/Components/{WIDGET_NAME}/{VIEW_NAME}.cshtml
Where:
WIDGET_NAME
ContentBlock
Navigation
ContentList
VIEW_NAME
You can modify the default or add custom logic to the behavior of a built-in widget by replacing a class in the .NET DI Container.
This is the Model class that all .NET Core widgets have – for example, IContentBlockModel, IContentListModel, or ISectionModel. You can see all registered Model classes in the WidgetCollectionExtensions.cs class.
Model
IContentBlockModel
IContentListModel
ISectionModel
You can include additional fields in the widget designer. You do this by extending the default Entity class that serves as the metadata source for the automatic generation of widgets.
Entity
GITHUB EXAMPLE: To view a sample of how to extend the Content block widget and its Model and the Entity classes, see Extend the Content block widget sample on Sitefinity GitHub repository.
Increase your Sitefinity skills by signing up for our free trainings. Get Sitefinity-certified at Progress Education Community to boost your credentials.
This free lesson teaches administrators, marketers, and other business professionals how to use the Integration hub service to create automated workflows between Sitefinity and other business systems.
This free lesson teaches administrators the basics about protecting yor Sitefinity instance and its sites from external threats. Configure HTTPS, SSL, allow lists for trusted sites, and cookie security, among others.
The free on-demand video course teaches developers how to use Sitefinity .NET Core and leverage its decoupled architecture and new way of coding against the platform.
To submit feedback, please update your cookie settings and allow the usage of Functional cookies.
Your feedback about this content is important