element enables marking variables (text, font color or images) in the element code and set up custom macros for
editing.
When the user creates a macro, the Content Designer generates a corresponding field and maps the value of the
field to the macro. If the macro is reused in the same [ HTML ] element, the value of the field will be mapped to
every instance of the macro.
The following types of macros are available:
New String – a single-line macro. Read more >>>
New Text – a multiline macro. Read more >>>
New Picture – an image source macro. Read more >>>
New Color – a color picker macro. Read more >>>
The setup procedure is as follows:
Select an [ HTML ] element on the template and click [ Edit HTML ].1.
Select the part of the code that you want to replace with a macro.2.
Right-click the selected code. A macro context menu will appear.
Note. Right-clicking when nothing is selected in the editor does not produce a macro context menu.
3.
Select the type of macro in the menu. You can create a new macro or add another instance of a previously
created macro to the code. If macros have already been added to the [ HTML ] element, they will also be
displayed in the context menu.
4.
Specify the title of the currently selected macro in the [ Macro constructor ] area on the right (Fig. 2), so that
you can identify this macro later.
Fig. 2 Editing the title of a macro
5.