Widget templates

Sitefinity CMS widgets are standard MVC widgets that you can find in the widget toolbox. You place the widgets on any page or template to add specific content or functionality. Each widget provides you with options to configure the widget's preferences in the user interface. For example, the News widget has options for selecting which news to display, how to sort them, and how many news items are rendered on the page.

You can modify the default widget templates directly in the file system without any need to build your project to apply the changes.  You can also control the rendered HTML and modify the markup of default widget templates according to your preferences. To edit a widget template, you simply edit the markup of the widget. You can create new widget templates either in the file system or from the backend.  For information about file priorities, see Priorities for resolving views.

NOTE: When creating and activating a dynamic module, Sitefinity CMS automatically creates a Dynamic content widget for this module. There are slight differences in how you work with Dynamic content widget templates, as well as the naming conventions for files and folders. For more information, see Naming conventions.

Widget templates are located in the ResourcePackages folder of the Bootstrap package that Sitefinity CMS uses, or in the root folder of your project.

NOTE: If you are not using any resource package, the default templates are located in Sitefinity CMS assemblies, so you can override them in the root of the project, or create new ones. Thus, widget templates are not coupled with any resource package.

For more information about frontend frameworks, see Resource packages.

RECOMMENDATION: We recommend that you store the widget templates in your resource package. For information about file priorities, see Priorities for resolving views.

You manage widget templates on Widget templates page. To open the page, in the main menu, click Design » Widget Templates.

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?