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.
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.
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.
Sign up for our free beginner training. Boost your credentials through advanced courses and certification. Register for Sitefinity training and certification.
To submit feedback, please update your cookie settings and allow the usage of Functional cookies.
Your feedback about this content is important