Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How can I exclude headers of an excerpt-include from a table of contents Edited

Hi Community!

I have a problem with the table of contents (toc) in combination with the Excerpt-Include feature.

I cannot exclude headers of an excerpt-include from a toc. 

The structure of my pages is as following.

Structure of page 1:

    <h1>P1-Header 1</h1>
    <h2>P1-Header 1.1</h2>
    <h2>P1-Header 1.2</h2>

Structure of page 2:

  <h1>P2-Header 1</h1>
  <h2>P2-Header 1.1</h2>
  {excerpt-include of page 1 /}
  <h2>P2-Header 1.2</h2>

Result toc of page 2 now looks like:

* P2-Header 1
** P2-Header 1.1
* P1-Header 1
** P1-Header 1.1
** P1-Header 1.2
** P2-Header 1.2

Now I couldn"t find a way to exclude the headers of the Excerpt-Include (page 1) within the toc of page 2.

The result toc which I try to get is:

* P2-Header 1
** P2-Header 1.1
** P2-Header 1.2


Can anyone help me out to find a solution?

We are using Confluence 6.5.1.

2 answers

1 accepted

1 vote
Answer accepted

The only way I can think to do this would be to change the headings on your include page to something higher ... like h3 and h4 and then tell you TOC macro to ignore h3 and h4.

Hi Davin,


Thank you for your fast reply.

I was afraid that something like this would be the way. 

Then I will try to do it like your proposal or 'excerpt' multiple parts without the heading tags.

Thank you again!


Best regards,


I just tried to use multiple excerpts but it does not work.

It seems not to be a bug because the documentation also says:

"You can only define one excerpt per page. In other words, you can only add the Excerpt macro once to a page."



For now I do not use the Excerpt macro anymore. I just linked the parts of the other pages. Maybe they will improve the feature for the future.

There are a couple add-ons in the mareket place that allow for multi excerpt includes.

Multi Excerpt (paid)

Include Content (free)

Thanks Davin the add-ons helped me out!

0 votes
r_m_ br I'm New Here Jul 13, 2021

I still have the same problem. To put the headings to a higher level is no solution for me, it takes to much of the flexibility.

Is it not possible to exclude the ToC numbering for excerpt include?

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Confluence

🏑 Atlympic Event: Confluence

Hello Community!  Quick disclaimer: We are running a contest on Community (The Atlympics!) from July 23rd - August 8th of 2021. If you are interested in participating in this contest (prizes! ...

179 views 6 8
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you