Registering and using the control

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

  1. Log in to Sitefinity 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 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.

See Also

Related topics:

Feedback

How useful is this article?

Tell us more

Submit
Your message was successfully sent.

We appreciate your feedback.

Your message could not be sent.

OK