Sitefinity CMS can be extended very easily using traditional ASP.NET UserControls. Once a UserControl is added to Sitefinity, Sitefinity will automatically generate a web admin interface.
In addition to the auto-generated interface, Sitefinity Control Designers can be used to create very user-friendly custom web-based interfaces:
Control Designers can be attached to an existing UserControl by adding a Telerik.Framework.Web.Design.ControlDesigner attribute:
using System;
[Telerik.Framework.Web.Design.ControlDesigner("CustomDesigner")]
public partial class Custom_UserControls_CustomControl : System.Web.UI.UserControl
{
protected void Page_Load(object sender, EventArgs e)
{
}
} Custom Control Designers can be created by creating a new class and inheriting from the Telerik.Framework.Web.Design.ControlDesigner base class:
~/App_Code/CustomDesigner.cs
public class CustomDesigner : Telerik.Framework.Web.Design.ControlDesigner
{
public CustomDesigner()
{
}
} The Control Designer becomes responsible for rendering a web-interface and setting the underlying control properties.
Getting Access to the Underlying Control Properties
Control Designers have access to the underlying control via the DesignedControl property. However, this isn't as simple as it might seem. Consider the following ...