How do you create new "snippets" in 7.6.1 Email Templates?

SuiteCRM 7.6 (and 7.6.1) introduce a new cool feature in the creation of email templates.

Now you have a set of predefined “snippets” (sorry I don’t know the actual term) on the left side, which can be used to compose the layout of the email template.

I wonder how would it be possible to create new “snippets”.

For example I often use a two column layout where one column is 70% wide and the other 30% (either left or right), or, 3 columns: 25%, 50%, 25%

It would be nice if one could add his own new “snippets” to be reused. Otherwise, each time there is some repetitive formatting to be carried out.

Any help will be very appreciated!

Thks!

After deeper investigation I found that they are part of Mozaik and they called Template Section Lines and that a database table caled templatesectionline stores them.
There is a module called TemplateSectionLine but, apart from editing directly the database I haven’t found a way to edit them nor create new ones or order them.

Any help?

By the way: after creating a new one (which was displayed after all the others, now their images are broken: once I drag the Template Section Line to the side othe editor, the image is not shown. By looking at the source code I hoticed that, it uses a url as source path for the image and the url starts with an encoded semicolon.

Just discovered the TemplateSectionLine module.

I made a new entry. It shows up in the Database. But when I create a new email template it doesn’t appear. What am I doing wrong?

Also:

  • how do I enter HTML-code here? Just put plain html into the description field?
  • What’s the field “Thumbnail” for?

I think I just answered my own questions:

  1. Leave field “group” empty! Otherwise snippet won’t appear in Email Template builder. (I entered a short text here, and the snippet was not shown. Maybe it can be used successfully in a way I haven’t yet found?)
  2. field “Thumbnail” contains a file path to an image file that acts as a preview of the snippet. This field must contain a valid path to an image or else the snippet will not be available in the Email Template builder!
  3. field “order” works. Just keep in mind that numbers 1-9 are already used by the default snippets. multiple uses of same order number are possible though. They are all shown.
  4. field “description” contains raw HTML code.
  5. in order to change (add) fields shown in detail and list view of the module, add an empty file named “studio.php” to /modules/TemplateSectionLine/metadata/ (non-upgrade safe). Then you can edit the layouts in studio, just like for other modules.