Add Macro: Table of Contents Zone ("toc-zone")
The macro name for Table of Contents is toc-zone.
If the Macro parameters field is left empty, the macro will use its default settings.
Example: Setting Parameters for the TOC Zone Macro
Field | Value |
|---|---|
Macro name | toc-zone |
Macro parameters | <ac:parameter ac:name="minLevel">1</ac:parameter>
<ac:parameter ac:name="maxLevel">2</ac:parameter>
<ac:parameter ac:name="outline">true</ac:parameter>
<ac:parameter ac:name="indent">10px</ac:parameter>
<ac:parameter ac:name="location">top</ac:parameter>
<ac:parameter ac:name="type">flat</ac:parameter> |
Macro rich text | <ac:rich-text-body>
<h1>Heading testing text for example 1</h1>
<p>Sample testing text for example Sample testing text for example. Sample testing text for example Sample testing text for example.Sample testing text for example Sample testing text for example.</p>
<h1>Heading testing text for example 2</h1>
<p>Sample testing text for example Sample testing text for example. Sample testing text for example Sample testing text for example.Sample testing text for example Sample testing text for example.</p>
</ac:rich-text-body> |
Screenshot of the example:
Tip: To check which parameters a macro supports—and the values used for each—open a page that already contains the macro, then click “...” → Advanced details → View Storage Format.