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:
- grid-2+3+2+3+2-newsletter.html
- grid-3+3+3+3-newsletter.html
- grid-3+6+3-newsletter.html
- grid-3+9-newsletter.html
- grid-4+4+4-newsletter.html
- grid-4+8-newsletter.html
- grid-6+6-newsletter.html
- grid-8+4-newsletter.html
- grid-9+3-newsletter.html
- grid-12-newsletter.html
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.