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:

Markup

h1. Cassandra Demonstration Environment

----

{toc:exclude=.*Cassandra}

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?

Thanks,

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jul 10, 2018 in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

699 views 21 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