How to insert children pages list and their children in the TOC of the root page?

I have the folowing structure:



How can I use the toc macro on the root page to display the above structure (or any other buildin macro)?



1 answer

2 votes
Thomas Schlegel Community Champion Jun 02, 2017

Hi Miles,

you can do it like that:

  • do not use the toc macro, but the children macro
  • edit the children macro, set the depth of descendants to 4
  • Set Excerpt Display to "Rich Content"
  • Add your pages
  • Add an excerpt macro to page "Subchild2"
  • add toc-macro into the excerpt body
  • Add your headers to the page Subchild2 and save it

Now, if you look at your top page, it should look like that:


Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

2,933 views 27 12
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you