Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

toc macro Exclude does nothing

Deleted user August 24, 2012

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
Answer accepted
Harry Chan
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 24, 2012

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

Deleted user August 27, 2012

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
TAGS
AUG Leaders

Atlassian Community Events