You now have the option of creating expert templates in the EmailBuilder. These allow you to design your emails even more individually.
Unlike for the regular templates, no widgets are used to create the expert template. Instead, you have the option of defining the entire HTML structure of the expert templates within a code editor. Not only can you continue to use the variables you are familiar with, but you can now also use other Twig functions:
You can use the „include“-function to integrate the content of your already created templates, headers or footers into your expert template. All you have to do is place „{% include [templateID] %}“ at the desired position. You can now find the template ID used here in the language-specific settings.
Please note that this function only inserts the template content. If you defined headers/footers in the template settings, these will not be inserted.
You can use the „extends“ function to extend other existing expert templates with your expert template. You can use „{% extends [templateID] %}“ for this. Here too, the template ID used refers to the ID from the language-specific settings.
When using the „extends“ function, you need to first have blocks defined. You can find a detailed description of how to do this in the Twig documentation: Twig for Template Designers - Documentation - Twig - The flexible, fast, and secure PHP template engine 4
Creating a new expert template works in exactly the same way as creating a regular template. All you have to do is activate the Expert template button in the Create new template window.
Available from 17 January 2023.