toc macro Exclude does nothing

We are running v3.4.9 of Confluence.

When I try to limit specific headings from appearing in the table of contents by using the exclude function of the toc macro, it never appears to have any impact on what is displayed. For example:


h1. Cassandra Demonstration Environment



h1. 1       Introduction

h2. 1.1      Executive Summary

Displays the following

Cassandra Demonstration Environment

I don't want the first bullet to appear, what am I doing wrong?


1 answer

1 accepted

Hi, *.Cassandra means anything that ends with Cassandra. I believe you need Cassandra* or something similar? Please give that a try.

Thanks for the response Harry! You were correct about the expression I was using, in the wrong order, but also my error of including the period along with the equals sign. For some reason each of the examples I looked at appeared to show "exclude=." before the rest of the expression, which I left and/or put in place. Should have known better :~)

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,944 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