This page last changed on Jun 01, 2009 by ggaskell.
Use the Children Display Macro to display the child pages of a page and the descendents (childrens' children). Links to the children are displayed as in the screenshot below:
Screenshot: The Children Display Macro in Confluence

Note that only pages to which you have 'View' permission will be displayed.
On this page:
Usage with the Macro Browser
To insert the children display macro into a page using the Macro Browser,
- Open your desired Confluence page, then click the 'Edit' button. The 'Edit Page' mode opens.
- Next, click the Macro Browser icon
on the editor toolbar. The Macro Browser will open in the middle of the screen.
- In the Macro Browser, type the name of your desired macro into the search box at the top right of the window. Macros with a matching name will appear in the centre pane. Click on the desired macro to see its options screen. Here, you can set the macro parameters then click 'insert' to put the macro into the page.
Once you've found the children display macro, click ' insert' to add it to your page.
Usage with the Wiki Markup Editor
What you need to type |
What you will get |
{children:all=true}
|
|
Parameters
Parameters are settings for Confluence macros that allow the user to control their content or presentation. The table below lists relevant parameters for this macro.
Parameter names are displayed differently in the macro browser interface and in wiki markup. Below, parameter names used in the macro browser are indicated in Bold text, while their equivalents in wiki markup are indicated in (bracketed) text. If the latter is not shown, then in wiki markup, the parameter's name should be omitted and only its value should be added immediately after the colon symbol (:).
Parameter |
Default |
Description |
Show Descendants
(all) |
false |
Display all descendents |
Parent Page
(page) |
current |
Specify which page to display children for in a current space or in a different space.
If the page parameter is '/', then the macro will list all the current space's top-level pages i.e. those without parents. If the page parameter is a space key followed by a
colon (e.g {children:page=DOC:}), then the top-level pages of that space will be listed. |
Depth of Descendants
(depth) |
none |
Specify the depth of descendents to display. 
If your {children} macro includes both 'all=true' and 'depth=X' parameter-value combinations where X is a number, 'all=true' takes precedence. If an 'all=false' and 'depth=X' parameter-value combination is used, 'depth=X' takes precedence. |
Number of Children
(first) |
none |
Restrict the number of children displayed at the top level |
Heading Style
(style) |
none |
Specify the style in which descendents are displayed |
Include Excerpts
(excerpt) |
false |
Display the child pages' excerpts, if they exist |
Sort Children By
(sort=creation)
(sort=title)
(sort=modified) |
Manual if manually ordered, otherwise alphabetical |
The 'sort' attribute is an optional attribute that allows you to configure how the children are sorted. Specify 'creation' to sort by content creation date, 'title' to sort alphabetically on title and 'modified' to sort of last modification date. |
Reverse Sort
(reverse) |
false |
Use this parameter in conjunction with the 'sort' parameter described above. Set 'reverse=true' to change the sort from ascending to descending order. |
Examples
1. Display all descendents of the page
2a. Specify which page to display children for
{children:page=page-name}
2b. Specify which page in a different space to display children for
{children:page=space-key:page-name}
3. Specify the depth of descendents
4. Restrict the number of children displayed at the top level
5. Specify the style in which descendents are displayed
Choose from heading levels h1 to h6.
{children:depth=1|style=h3}
6. Display the child pages' excerpts, if they exist
{children:depth=2|excerpt=true}
7. Sort children by modification date
{children:sort=creation|reverse=true}
RELATED TOPICS
Working with Page Families
Working with Macros
Take me back to the Confluence User Guide.
|