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

This widget could not be displayed.

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
Community showcase
Posted yesterday in Confluence

Why start from scratch? Introducing four new templates for Confluence Cloud

Hi my Community friends!  For those who don't know me, I'm a product marketer on the Confluence Cloud team - nice to meet you! For those of you who do, you know that I've been all up in your Co...

208 views 2 4
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