Reference the template of the simple widget designer

To wire up the template with the designer, you must return its name via the LayoutTemplatePath property. It specifies the path to the embedded resource following the naming convention <Namespace>.<ResourceFolderPath>.<TemplateName>, where you must replace path slashes inside the ResourceFolderPath with dots. 

For example, if you have project called SimpleWidget and the path to the template file is Resources/Views/SimpleWidgetDesigner.ascx, the LayoutTemplatePath property must return the following:
SimpleWidget.Resources.Views.SimpleWidgetDesigner.ascx

EXAMPLE: For more information about referencing the template of the designer in the designer's class, using the LayoutTemplatePath property, see For developers: Full code of the widget designer class.

Increase your Sitefinity skills by signing up for our free trainings. Get Sitefinity-certified at Progress Education Community to boost your credentials.

Web Security for Sitefinity Administrators

The free standalone Web Security lesson teaches administrators how to protect your websites and Sitefinity instance from external threats. Learn to 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?