Forums

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

How to include {ui expand} in table of contents?

Hunter Morgan
Contributor
March 31, 2020

I am trying to keep my pages as clean as possible and the expand tab is a great way to do this. However the content I am creating in these tabs isn't listed in the table of contents.

Only part of my page is utilizing expand.

1 answer

0 votes
Ste Wright
Community Champion
April 13, 2020

Hi @Hunter Morgan

I tested this on our test instance and it worked fine for me - this is what I did:

  • Created a page with three titled sections
  • Placed one section into an Expand Macro
  • Added the Table of Contents Macro at the top of the page

The hidden section (Title 3) still shows on the ToC macro even when the expand was closed.

Can you provide a screenshot of what you're seeing?

Ste

tabithar October 8, 2021

(child display)

(ToC display, removed links since Confluence forum doesn’t allow copying ToC from Confluence)

  • KB Content:
  • Links 
    • Atlassian Community (use SSO to log in)
  • Deployment Documentation Meeting Notes
    • Link to meeting notes 1
    • Link to meeting notes 2

 

  • Formatting Standards
    • Inserted Images

 

  • "Heading" Format Examples
    • Heading1
    • Heading2
    • Heading3
    • Heading4
    • Heading 5 (same size as paragraph)
  • Table of Contents

Links 

  • Atlassian Community forum (use SSO to log in) (link removed since forum doesn't allow linking to the forum)

Deployment Documentation Meeting Notes

    • Link to meeting notes 1
    • Link to meeting notes 2

 

 (begin Expand section. Apparently you aren't allowed to post Confluence code on Confluence forums...)

Formatting Standards

  • Inserted Images
    • Make sure there is NO PPI in the image!
    • 650px for large, detailed views, 300 px for small prompts/graphics/etc
  • "Heading" Format Examples
    • Heading1
    • Heading2
    • Heading3
    • Heading4
    • Heading 5 (same size as paragraph)
    • Paragraph

(end Expand section)

Table of Contents

    • If you create an "expand" section, the headings inside will be visible but NOT linked to the content while the expand is open
    • Remove "See Also" and "Change History" from ToC by highlighting them and switching to paragraph
    • Remove blank first line from ToC by selecting the ToC icon itself and switching to paragraph
tabithar October 8, 2021

@Ste Wright @Hunter Morgan 

Oops, I didn't paste in my first paragraph. I tried your directions, but the headings inside the Expand section are only linkable from the ToC when the Expand is opened. They are all visible, just nothing happens when you click them. Since Expand sections are closed by default when you open the page, it makes the ToC useless. Can you confirm whether I am doing something wrong here?

Like # people like this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events