Basic Use
List the pages attached to the current page:
The result is shown below (we added a single child page to this page):
Note:
If the page has no child pages, nothing will be shown.
Displaying Excerpts
If you are in the habbit of defining excerpts for pages, you can display them using the "excerpt" parameter:
Resulting in:
Displaying All Child Pages
You can display all child pages, and their child pages, etc., with the "all" parameter:
Resulting in:
Alternate Starting Page
Display child pages for a specific parent page using the "page" parameter, such as our Macros page for example:
The result is shown below:
- Advanced — Advanced macros enable you to add custom HTML and scripting to your content...
- Basic Formatting — Basic Formatting macros allow you to change text colour, put content in panels and other basic formatting requirements...
- Games — Add brain-taxing games to Confluence...

- Generic Macros — These Generic macros haven't yet been classified in to a specific category, but you'll find some amazing things here...
- Layout — Layout macros are used to arrange content in to panels, columns and block quotes...
- Navigation and Lists — Navigation and List macros provide additional navigation elements and lists of content, etc...
- Theme Builder Macros
- Users and Personalisation — User and Security macros display users lists and also allow content to be filtered depending on the logged in user...
Limiting Number of Pages
Sometimes you might only want to show a limited number of child pages. To do this, use the "first" parameter and specify how many pages to show:
The result is shown below:
Note:
This only limits the number of child pages shown at the top level - if you are showing additional levels (see next example) then the limit will not apply to those additional levels.
Displaying Specific Number of Levels
The "depth" parameter allows you to specify how many levels of child pages to show:
The result is shown below:
Custom Heading Styles
The "style" parameter allows you to use a heading style for the first level of child pages, ideal for creating contents pages:
The result is shown below:
Advanced macros enable you to add custom HTML and scripting to your content...
- add-label macro — The {add-label} macro allows you to add one or more labels to a page automatically.
- alias macro — The {alias} macro allows you to create aliases (or shortcuts) for pages...
- create-page macro — The {create-page} macro asks the user for the name of the page and then creates it based on a template...
- div macro — The {div} macro wraps content in a div tag with optional class and styles...
- html macro — The {html} macro allows you to add raw HTML to your pages, but should be used with care...
- html-tag macro — The {html-tag} macro provides a safe mechanism for the addition of specific HTML tags and attributes to be inserted in to your content...
- redirect macro — The {redirect} macro will automatically redirect the browser to an alternate web page either within your own site or on an external site...
- span macro — The {span} macro wraps content in a span tag with optional class and styles...
- style macro — The {style} macro allows you to add custom style sheets to a page or import from an external URL...
Basic Formatting macros allow you to change text colour, put content in panels and other basic formatting requirements...
- align macro — The {align} macro allows you to quickly and easily set the alignment of content...
- bgcolor macro — The {bgcolor} macro allows you to change background colour of a block of content...
- center macro — The {center} macro allows you to quickly and easily center content...
- code macro — The {code} macro is used to display syntax highlited source code...
- color macro — The {color} macro allows you to change text colour quickly and easily...
- copyright macro — The {copyright} macro makes it easy to add customisable copyright marks to your content...
- highlight macro — The {highlight} macro allows you to change background colour of a section of content...
- loremipsum macro — The {loremipsum} macro adds latin text to your page, useful for testing purposes...
- noformat macro — The {noformat} macro is used to display unformatted text on your pages...
- quote macro — The {quote} macro is used to group blocks of content quickly and easily...
- reg-tm macro — The {reg-tm} macro makes it easy to add customisable registered trademarks to your content...
- sm macro — The {sm} macro makes it easy to add customisable service marks to your content...
- strike macro — The {strike} macro provides a highly graphical way to indicate deleted text...
- tm macro — The {tm} macro makes it easy to add customisable trademarks to your content...
Sorting Pages
The "sort" parameter allows you to change the sort order used when listing pages. By default, pages are sorted alphabetically on their title:
The result is shown below:
You may however prefer pages to be chronologically sorted by their creation date:
The result is shown below:
Or chronologically sort them on the date they were last modified:
The result is shown below:
Reversing Sort Order
The "reverse" parameter allows you to reverse the sort order for pages:
The result is shown below:
- align macro — The {align} macro allows you to quickly and easily set the alignment of content...
- bgcolor macro — The {bgcolor} macro allows you to change background colour of a block of content...
- center macro — The {center} macro allows you to quickly and easily center content...
- code macro — The {code} macro is used to display syntax highlited source code...
- color macro — The {color} macro allows you to change text colour quickly and easily...
- copyright macro — The {copyright} macro makes it easy to add customisable copyright marks to your content...
- highlight macro — The {highlight} macro allows you to change background colour of a section of content...
- loremipsum macro — The {loremipsum} macro adds latin text to your page, useful for testing purposes...
- noformat macro — The {noformat} macro is used to display unformatted text on your pages...
- quote macro — The {quote} macro is used to group blocks of content quickly and easily...
- reg-tm macro — The {reg-tm} macro makes it easy to add customisable registered trademarks to your content...
- sm macro — The {sm} macro makes it easy to add customisable service marks to your content...
- strike macro — The {strike} macro provides a highly graphical way to indicate deleted text...
- tm macro — The {tm} macro makes it easy to add customisable trademarks to your content...
You can use this, along with the "sort" and "first" parameters, to list the most recently updated page, for example:
Which results in:
- center macro — The {center} macro allows you to quickly and easily center content...
Displaying Orphan Pages
Pages that don't have a parent page are referred to as "orphans". You can display a list of orphan pages in the current site as follows:
The result is shown below:
Note:
If the page on which you use this macro is itself an orphan, it will not be included in the list.
You can also display orphan pages for another site by specifying the space name as follows:
This will show all orphan pages in the ADAPTAVIST space (which is where our adaptavist.com site lives):
See Also: noparent macro
A great feature to add would to be able to only show children with a particular label, or set of labels.
Indeed.
{children:depth=1|label=xx,yy}
This would make it easy to present filtered lists of pages, which would be quite invaluable.
If this isn't possible, is there another macro that would allow such a list to be constructed?
Charlie
ETR Associates
There are plans to create a common API for a wide range of macros to ensure that they all have label support, space filtering, content type filtering, etc. It's still early stages, but to keep track of progress, please see the following URL: Unified Page Searching Tags
Our menus contain a list marked 1, 2, 3, 4... 10, 11, 12, the Macro automatically lists this as 1, 10, 11, 12, 2, 3, 4, i.e. not iin numerical order.
There was a fix, sort=natural, but this no longer seems to work, can someone enlighten me.
The fix only applied to the pagetree macro unfortunately. We're hoping that Atlassian will separate out the children macro in to a normal plugin that we can then more easily modify to add these features back in.
Hi, the Plugin is close to what I am looking for. I need a macro which gets all the children and displays several information (not only the excerpt) from the child page. It would be great to display this list in a table.
Can anybody tell me how to find a solution?
Thx
is there anyway of forcing children pages to be displayed in the menu in the required order - not alphabetical, not in the most recently amended order, but in a specified order
Not yet - but there soon will be. Confluence 2.8 (currently at Milestone 3 development stage) introduces page ordering so you can set custom ordering of pages and then have macros use that ordering. I'll be doing some QA on our Confluence 2.8 test server early next week but I imagine that this will be feasible (and trivial) to do with the children macro once Confluence 2.8 is released. That being said, there are some major UI changes in Confluence 2.8 so keep an eye on the Builder space for news updates on compatibility with Theme Builder 3.x.
I have this FAQ, 3 levels deep.
I want to create a "ready to print/pdf" version. Right now, I use children macro to have a nice dynamic index of the FAQ. But for pdf export, I need the same macro (or similar) to generate in addition or instead of the "toc" a flat one page file of all the children (that I have permissions to vie, just like the children macro).
am I missing an obvious way to do it?
Hi
The image displayed in the "Overview" tab appears to show that the branches are collapsible but when i use the
{children}Cheers