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

1 vote
Accepted answer

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 Oct 24, 2018 in Confluence

Atlassian Research opportunity with Confluence templates

Do you use templates with Confluence? Take part in a remote 1-hr workshop. You'll receive USD $100 for your time!   We're looking for people to participate in a   remote 1-hr workshop...

1,049 views 16 14
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