Exclude headings from excerpts and included pages from Table of Contents

My page embeds many excerpts and included pages via Include Page and Excerpts macro respectively.

I would like to exclude any heading generated by excerpts or included pages from the TOC.

I don't want anything but the headings of the current page displayed in the TOC.

 

However, as the included pages and excerpts are of an identical type of page (user guides) their respective headings are also identical to the page they're embedded in.

That is why excluding them via min/max levels does not work. The TOC stays confusingly recursive.

I have also not found a way to use regular expressions.

 

Is there any way to identify "included / excerpt" by way of regular expressions? Or is there any other way to make imported headings disappear?

 

Thanks for you help.

1 answer

CSS might work, try inspecting the page to get the class name for the the excerpt include macro.

Thanks for your reply. I know the class names but unfortunately I don't have access to the CSS. I'll ask our admin to give it a try.

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
Published yesterday in Confluence

Three common content challenges + how to manage them

An efficient enterprise content management system, or ECM, is a must-have for companies that create work online (cough   cough, all companies). If content calendars, marketing plans, and bu...

71 views 0 4
Read article

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