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.

Get started with Integration Hub | Sitefinity Cloud | Sitefinity SaaS

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.

Web Security for Sitefinity Administrators

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.

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?