Create a NewsRotator widget

Sitefinity CMS comes with a set of built-in controls, which can be directly used in the pages you create. However, you are also capable of creating your own controls and use them side by side with the default ones.

This tutorial guides you through the steps required to create a control. As an example, you will create a NewsRotator control. You use the control to present the most recent news items and their cover pictures as a slideshow. 

GITHUB EXAMPLE: This tutorial outlines the main concepts of creating a control. You can dawnload the full code sample for the NewsRotator control from Sitefinity CMS GitHub repository » NewsRotator sample widget.

After completing your control, if you don't want to use the built-in property editor, you can create a control designer. The control designer allows you to define a custom UI that is used to configure the control.

For more information about the controls, see the Widgets: Add content and functionality to pages.

You can also check out the Before you begin section below. 

Prerequisites

In order to create and use your control, you must have an up and running Sitefinity CMS project. For more information about installing Sitefinity CMS and creating and starting a project, see Install, upgrade, and deploy.

NOTE: The code provided in this documentation is written in C#. You can convert the code to VB using the Telerik Code Converter.

Increase your Sitefinity skills by signing up for our free trainings. Get Sitefinity-certified at Progress Education Community to boost your credentials.

Web Security for Sitefinity Administrators

The free standalone Web Security lesson teaches administrators how to protect your websites and Sitefinity instance from external threats. Learn to configure HTTPS, SSL, allow lists for trusted sites, and cookie security, among others.

Foundations of Sitefinity ASP.NET Core Development

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.

Was this article helpful?