Insert the content tree macro
The content tree macro displays a dynamic, hierarchical list of content starting from a specified parent (root) item. It can act as a table of contents or a list of related topics. When viewing the content tree, your reader can click a link to view any individual piece of content. The content’s current position is highlighted in the content tree.
Use the content tree macro
To add the content tree macro:
When editing, select from the toolbar
Find the macro by name and select it
Configure it as needed
You can also type / on the page to bring up the same list you'd see by selecting from the toolbar. Continue typing the name of the macro to filter the list.
To edit the content tree macro:
Select the macro placeholder.
Select the Edit icon to open the configuration panel.
Configure the parameters. Your changes are saved as you go.
Resume editing the page, and the panel closes.
You can also select the centered , medium-width , and full-width icons to adjust the width of some macros. Select the trashcan iconto remove the macro.
Parameters
Parameters are options that you can set to control what and how content from the macro appears on a page or live doc.
If the parameter name used in Confluence Cloud storage format is different than the label used when inserting macros using the browser or the slash command, it will be listed below in brackets (example
).
Parameter | Default | Description |
---|---|---|
Root content | The overview page of the space | Specify the parent item for the content tree. The tree will include all nested children of the given parent item, plus their own nested items. The tree will not include the root parent itself.
|
Sort content by | position | Specify the order to display the content in the tree. This sort order is for display purposes only. It does not permanently re-arrange the order of tree content. The value may be one of the following:
|
Include excerpts in content tree | false | Select if you want the content tree to show excerpts from each content item. The excerpts must be defined on each item by the Excerpt macro. |
Reverse order | false | Select to show the content in reverse (descending) natural order. Must be used in combination with the Sort content by parameter. |
Include search box above content tree | false | Select if you want to include a search box above the content tree. The search box allows your readers to search within the content tree for the specified value. |
Show expand/collapse links | false | Select if you want to display the 'expand all' and 'collapse all' links at the top of your content tree. Your readers can click these links to open or close all branches of the tree at once. Available values in wikimarkup and storage format:
|
Tree depth | 1 | Enter any number greater than 0 to set how many levels of children the tree should show when it opens for the first time. |
Was this helpful?