Subtemplates are templates within templates. They are most commonly used for frequently used headings and signature blocks. They are used to create consistency in templates and efficiency in the coding process.
Setting Up Subtemplates
Upload your subtemplate into the Templates Manager. Go to this article to learn how to upload templates Uploading Documents (Template Manager)
Subtemplate names must not contain spaces of special characters. The use of underscore (“_”) is permitted. Ideally, we would recommend using camel case when naming a subtemplate.
Change the template type to “Subtemplate” and click “Done.”
The settings page will now look like this:
Use the include function to add your subtemplate into your document.
In the document settings, add the subtemplate(s) used in the document. First, click “Subtemplate” on the bottom of the settings.
- Choose the relevant subtemplate(s) from the list. You may use the search bar for easier functionality
The subtemplate will now be linked to this template in the document settings.
- Click "Save"
⚠️ If there is a subtemplate included in a document and you have not added it to the document settings, it will cause an error when generating the document.
⚠️ Always verify that the font and the styles used in the subtemplates are the same as the ones used in the main document.