space-hierarchy macro
Overview
The space-hierarchy
macro displays on the page the hierarchy beneath the current space. This will be displayed as a tree representation of the hierarchy.
The space hierarchy is defined using the parent-space
macro added to each child space.
You can show the hierarchy beneath a different space using the space
argument.
Parameters
Parameter | Required | Default | Notes |
---|---|---|---|
|
| Current space |
The hierarchical root space is displayed as the root space in the tree representation on the page. |
Usage
Add the Space Hierarchy macro to a page in a space using the Confluence macro browser.
In the macro editor preview, any spaces set as a child of the root space using the parent-space
macro will be displayed in the tree representation.
If the Space key box is left blank, the current space is displayed as the root space. In our example this is the Human Resources space.
If required add the spacekey to set the root space for the tree representation.
Reference Markup
{space-hierarchy:space=tdt}
Where the space
parameter value defines the root space for the tree representation.