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

I have the folowing structure:

Root
        Child1
        Child2
        Child3
                 Subchild1
                 Subchild2
                               Header1
                                      Header2

 

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:

children2.png

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jul 10, 2018 in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

974 views 23 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