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.

Was this article helpful?