I need to be able to supress certain headings within my table of contents on a Confluence page.
The headings I need to surpress are:
- Page Views
- Recently Updated
- Release Items (xx issues)
The xx within brackets will be different depending on what comes back from a JIRA feed.
I have absolutely no idea about regular expressions. Is it possible to write a regular expression to surpress these headings?
If so, would anybody be kind enough to help me out? :-)
It's ok, figured it out myself ...
Views|Recently Updated|Release Items.*|
I used this to exclude a heading "Table of contents" itself :D
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ok, I've hit a snag here.
I wanted to remove the headings Document details and Table of contents when using the TOC macro.
I used this regex: Document details|Table of contents.*| in the exclude headings section.
It renders the correct result I need in the macro's preview. (Refer SS 1)
But upon publishing the page, TOC is empty.
I tested the macro again without the Regex, it works fine, included it shows me the headings I wanted to exclude.
What could be the issue here?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try (Table of Contents|Views|Recently Updated|Release Items).
I used (Table of Contents| Document details) and it worked.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Steve,
Can you tell us which version of Confluence are you running?
Also, if you can attach a screen capture of your page. The reason I ask is that release items don't normally display on each page...so to see a screen capture would clarify.
Mary
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.