In many cases your custom .NET Core widget need to get and display some items from Sitefinity CMS backend. Using this sample, you can create an ASP.NET Core widget that works with different types of content persisted in Sitefinity CMS modules, such as News items, Content blocks, dynamic and media items.
To accomplish this, your custom ASP.NET Core widget must use OData calls to interact with Sitefiity CMS. You can achieve this using the provided IRestClient for working with OData services.
IRestClient
GITHUB EXAMPLE: To create the widget, use Sitefinity data widget sample on Sitefinity GitHub repository.
GITHUB EXAMPLE: To create the template, use Custom layout sample sample on Sitefinity GitHub repository.
This sample demonstrates how to create a ViewComponent that will be used to display a configurable message. The sample is explained in more detail in Create a custom .NET Core widget.
ViewComponent
GITHUB EXAMPLE: You can find the whole sample in Sitefinity GitHub repository » Hello world widget.
GITHUB EXAMPLE: To create a custom form widget, use Form widget sample on Sitefinity GitHub repository.
This sample contains a widget that uses all available field types, attributes, and validations.
GITHUB EXAMPLE: To create the widget, use the All properties 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