Children Display Macro

Error rendering macro 'includeplus'

User 'anonymous' does not have permission to view the page with ID 1014272901.

Add the Children Display macro to a page to display a list of pages from a specific part of the page hierarchy.  You can choose to display pages that are a child of the current page, or a child of any other page in a space. 

This macro is great for providing quick access to:

  • pages related to a project 
  • procedures and how-to pages.

Because it relies on the page hierarchy, the list of pages is automatically updated when pages are added, deleted, or moved.  You can even show an excerpt from the page for extra context. 

On this page:

Screenshot: The Children Display macro, showing a list of pages about printers.

Want to create a table of contents from headings on your page? See Table of Contents Macro

Add the Children Display macro to your page

To add the Children Display macro to a page:

  1. Error rendering macro 'includeplus'

    User 'anonymous' does not have permission to view the page with ID 993925286.

  2. Choose Children Display from the Confluence content or Navigation category.
  3. Use the parameters below to specify which pages to display, and how you want them to look. 
  4. Choose Insert

You can then publish your page to see the macro in action. 

Screenshot: Specifying the parent page and display options in the Children Display macro.


Change the macro parameters

Error rendering macro 'excerpt-include'

User 'null' does not have permission to view the page.

Here's a list of the parameters available in this macro. 

Parameter

Default

Description

Show Descendants
(all

false

Choose whether to display all the parent page's descendants.

If true shows the complete tree of pages underneath the parent page, regardless of Depth of Descendants

Parent Page
(page

current

Specify the page to display children for, from either the current space or a different space. Enter:

  • '/' — to list the top-level pages of the current space, i.e. those without parents.
  • 'pagename' — to list the children of the specified page.
  • 'spacekey:' — to list the top-level pages of the specified space.
  • 'spacekey:pagename' — to list the children of the specified page in the specified space.

Number of Children
(first

none

Restrict the number of child pages that are displayed at the top level.

Your administrator may enforce a maximum number for this parameter.

Depth of Descendants
(depth

none

Enter a number to specify the depth of descendants to display. For example, if the value is 2, the macro will display 2 levels of child pages.

This setting has no effect if Show Descendants is enabled.

Your administrator may enforce a maximum number for this parameter.

Heading Style
(style

none

Choose the style used to display descendants.

Include Excerpts
(excerpt

none

Allows you to include a short excerpt under each page in the list. Choose between:

  • None - no excerpt will be displayed
  • Simple - displays the first line of text contained in an Excerpt macro any of the returned pages. If there is not an Excerpt macro on the page, nothing will be shown.
  • Rich content - displays the contents of an Excerpt macro, or if there is not an Excerpt macro on the page, the first part of the page content, including formatted text, images and some macros.

Note that your administrator may have set this parameter to none for the whole site.

Sort Children By
(sort

Manual if manually ordered, otherwise alphabetical

Leave blank to display pages in the order they currently appear in the page tree. Alternatively, choose:

  • creation — to sort by content creation date
  • title — to sort alphabetically on title
  • modified — to sort of last modification date.

Reverse Sort
(reverse

false

Use with the Sort Children By parameter. When set, the sort order changes from ascending to descending.

Error rendering macro 'excerpt-include'

User 'null' does not have permission to view the page.

Other ways to add this macro

Add this macro as you type

Error rendering macro 'includeplus'

User 'anonymous' does not have permission to view the page with ID 993925310.

Add this macro using wiki markup

Error rendering macro 'includeplus'

User 'anonymous' does not have permission to view the page with ID 1003131187.

Macro name: children

Macro body: None.

{children:reverse=true|sort=creation|style=h4|page=Home|excerpt=none|first=99|depth=2|all=true}
tip/resting Created with Sketch.

Do more with Confluence

Extend Confluence with one of the hundreds of other macros in the Atlassian Marketplace. Here are a couple for organizing your Confluence page: 

Last modified on Mar 9, 2022

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.