Add custom widgets to message templates

Scope

In addition to the standard MVC widgets that you use when working with email campaign templates, you can add new custom MVC widgets or extend the built-in content widgets based on MVC.
For more information about developing MVC widgets, see Create and register widgets and Modify built-in widgets.

The section below describes how to add or modify Grid widgets in the Layout toolbox. With the Layout toolbox, you create and modify message templates by applying the available grid widgets and customizing the inline styles. Thus, you modify the message template that you have opened for editing individually.

Add custom grid widgets

NOTE: Because the Bootstrap is not available in emails, in your message templates you cannot use the Bootstrap grid widgets shipped with the Bootstrap package out-of-the-box. 

The default grid widgets that you can use in message templates, are provided on GitHub at the following location:

Based on the specifics of your scenario, you may need to modify any of these grid widgets. Note that it is only possible to set inline styles of the sf_colsIn elements in the available grid widgets.

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?