NewsRotator widget: Register and use the user control

To use your control on Sitefinity CMS pages, you must register it in the Toolbox. To do this, perform the following:

  1. Log in to Sitefinity CMS backend.
  2. In the main menu in the upper part of the screen, click Administration » Settings.
  3. Go to the Advanced settings by clicking the Advanced link.
  4. In the treeview on the left, click Toolboxes » Toolboxes » PageControls » Sections.
  5. To add a new section for your custom controls, click Create New.
  6. In the Name field and in the Title field, enter Custom.
  7. Click Save changes.
  8. In the treeview on the left, click Custom » Tools.
  9. To register your control, click Create New.
  10. In the ControlType field, enter ~/UserControls/NewsRotator.ascx.
  11. In the Name field, enter NewsRotator.
  12. In the Title field, enter News Rotator.
  13. Click Save changes.

Your control is now registered in Sitefinity CMS toolbox. You can drop it on a page and see how it performs. Note that to use the NewsRotatorcontrol, you must create some news items and place the respective images in the album called Thumbnails. You must also add a page hosting a NewsView control. This way you will are able to test whether the link for the full news item works properly.

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?