Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How do I get ToC Exclude Headings to work in Cloud?

Mads Trier June 12, 2023

ToC Exclude Headings does not work for me.

I have two headings I would like to exclude:


Introduction

Table of Contents


Using the ToC macro, I've modified the 'exclude headings' parameter a million times. I can barely tell you what works and what doesn't, because it seems to be doing so at complete random.

I have tried using the | from server version, which doesn't seem to work, but is listed on the documentation page: https://support.atlassian.com/confluence-cloud/docs/insert-the-table-of-contents-macro/

I have tried using , with spaces on both sides, one on either side and no spaces - none of them consistently work.

I tried renaming the headline to just 'Table' to see if there was an issure there, and it worked once, but when I went to correct it back to the right name, it stopped working. I tried reverting it to one-word and now it no longer works. Along the way, the 'Introduction' header seems to appear and disappear seemingly at random. At one point I had that as the only exclusion and it didn't even work. Then I removed all exclusions and 'Introduction' disappeared from the table.

Anyone have any idea what is going on with this macro?

3 answers

1 accepted

0 votes
Answer accepted
Mads Trier June 12, 2023

I think I've solved it by doing 2 things:

a. I've noticed that the change doesn't always follow through, so after publishing, I go back to edit and publish again and then it changes.

b. Using the syntax from this posts answer by Ryan Canfield, it seems to work! https://community.atlassian.com/t5/Confluence-questions/Exclude-multiple-headings-in-table-of-contents/qaq-p/1904617

0 votes
Mads Trier June 12, 2023

I tried adding a second ToC Macro and sucessfully excluded "Introduction" with the parameter

"Introduction,"

Then I went back to edit the original ToC - and did not touch the new ToC - and when I published the new ToC stopped excluding Introduction. Is the macro just broken?

0 votes
Mads Trier June 12, 2023

I tried using parentheses in the parameter

(Introduction,Table)

And that worked!

Then I changed the headline again, along with the parameter

(Introduction,Table of Contents)

And that did not work.
Then I changed it back to

(Introduction,Table)

and now that also does not work.

This is absurd.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events