You can work with Sections on the Document Sections tab. Sections are the building blocks that define the structure of your templates – each section that you create can have a unique design, and contain different content.
By default, when you create a new template, it will contain the Title, TOC, and Content sections.
- The Title section is the first section of the export. By default, it displays the Document title, Space name, and Export date.
- The TOC section displays a table of contents for the exported Confluence content.
- The Content section is where all Confluence content is exported (in the exported Confluence content goes here section). Therefore, this section is mandatory, and cannot be deleted. You also add static content to the Body – Before Content and Body – After Content elements if you want it to be exported immediately before or after the actual wiki content.
Want more control over what Confluence content is included?
You can define what content is included (and also how it is formatted) using macros.
Adding new sections
If you want to add more static content to your template in a different page format (such as a legal notes section, back cover, etc.) then you can do so by adding extra sections and including the static content in those.
You can add new sections by clicking Add Section in the sections column. You can change the order of the sections by clicking and dragging up and down the hierarchy. The higher a section is in the hierarchy, the earlier it will appear in your exports.
When you create a new section, you will notice that it does not include the exported Confluence content goes here element. This is because Confluence content only gets exported into the Content section – other sections can only contain static content and placeholders.
Now you have defined the structure of your template, you can customize the document sections to tweak its design.