TOC macro into another space

Our Confluence provides each of our customers with a branded space through which they can access wiki content and attachments, and some customer-specific content. Approximately 75% of the content is shared across all customers. I therefore have a space of Shared Content and use a TON of page inclue macros.

Using Zen, I have small sections down the left side of the page that act as 'left navigation' panels. What I want to do is add a TOC macro in one of those sections that generates a TOC for THAT page in THAT space. I don't want the entire content of that page in this little section. Much like the Page Tree macro, I want to specify the space and page from which to generate the TOC.

Does anyone know how I could accomplish this?

Thank you.

1 answer

Hi Sally,

If I understand correctly, you're trying to display page A's TOC in a side column on page B. Which the TOC macro doesn't support.

If page A displays its own TOC in a section, you can name that section (using the section designer) and then use the Section Include macro in the side column on page B and be sure to include only the named section on page A, and that should get what you want.

Also note that the TOC macro always shows the table of contents for the published page (it's unaware of drafts).

Hope that makes sense!

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Oct 24, 2018 in Confluence

Atlassian Research opportunity with Confluence templates

Do you use templates with Confluence? Take part in a remote 1-hr workshop. You'll receive USD $100 for your time!   We're looking for people to participate in a   remote 1-hr workshop...

980 views 14 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