Using the Section macro
The section macro lets you create optional sections in your template that you can manually activate or deactivate by clicking on a checkbox.
To insert a section
- In the template editor, right-click and choose Flow → Section
- PhraseExpander will show the Insert section dialog
- Type or paste the text in the Text or expression to include in the section field (you can right-click in the field to insert macros as well)
- Click OK to confirm
You can set a value to the Label to show and to 💬Additional instructions to display a title and a custom text in the Input form
💡TIP: If you want to display the section as collapsed, make sure the option Start as hidden is checked
Editing the contents of a section
-
Double-click on the {#section#} tag to open the section editing macro, make the changes, and click OK to confirm.
or
- Modify the contents of the template contained between the {#section#} and {#endsection#} tags directly
NOTE: If you are using formatting inside a section, you need to do the editing manually (without opening the editing dialog) by changing the text between the {#section#} and {#endsection#} tags, or the formatting will be lost.
Creating multiple sections
If you need to create multiple sections, you can arrange them one after the other (each {#section#} tag going on a new line).
If you want to add a new line to separate each section, make sure you add it at the end of each section (and not between them).
Doing this will ensure proper spacing (without generating extra spaces for collapsed sections).
💡TIP: You can also create sections one inside the other.