Forums

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

Exclude Expand panel's Headings from Table of Contents

Chintan Raval
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 28, 2023

Hello.. I have a page with 

  1. table of contents
  2. and then content with
    1. headings
    2. expand panel with it's content that includes
      1. headings

now, how do I exclude 1.2.2.1 from 1? (i.e. how do I exclude the expand panel's content's headings from showing up in the main table of contents?) I only expected the page's headings (1.2.1) to show up in the table of contents. 

 

a bit frustrating as the expand panel's purpose is to collapse and reduce noise by allowing to hide content. HELP!

1 answer

0 votes
Barbara Szczesniak
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.
December 4, 2023

@Chintan Raval I'm not sure how your page content and your Table of Contents macro are set up, but:

  • If your headings within the expand section are a different level than headings in the rest of the page (main page has Heading 1 and 2; expands have Heading 3 and 4), you can use the Include heading levels from [#] to [#] property of the Table of Contents macro. 
  • If the levels are not differentiated in this way, you can use the Exclude Headings with parameter to exclude headings that contain specific text. You can customize this based on the content in the headings in the expand on the specific page.

See https://support.atlassian.com/confluence-cloud/docs/insert-the-table-of-contents-macro/ 

If this helps, please accept the answer. 

Chintan Raval
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 7, 2023

thanks Barbara, yep - I was aware of both these features and unfortunately, none apply to me for the current use case. The headings are at the same level and the heading content is also similar and so can't apply a pattern there. I'll think of postfixing header content to all for the exclude rule to work.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events