Basically, I have a very large document (page) and instead of displaying its table of contents at the top of the page, I want to display a navigation tree in the left side bar based on the same criteria that generates the table of contents within the page (for example, if it finds a heading 1 then it adds to the tree).
But I want this to be in the left side panel without creating a page for each heading.
Is this possible?
You can add TOC macro to your sidebar same way you would to your page, but using Markdown language.
For the example below, I went Space Tools > Look and Feel > Sidebar, header and footer and added the following markup to Sidebar section
It created TOC in the sidebar for the page that is currently open. From the language:
Any other parameters can be added by referencing Table of Contents Macro page.
So my final result was a table of contents shown in the sidebar. Every time I switch a page, TOC for that page will be displayed.
Thank you for your suggestion. It does add the type of TOC we want to the sidebar, but whenever you click one of the links (in this TOC), it refreshes the whole page, collapses the new TOC, and the focus goes back to the document link (rather than the section where we're trying to link to.)
I want to try this, but there no longer appears to be a sidebar section Confluence Cloud 1000.0.0-da503df1a09f.
I tried Space Settings > Look and feel > Page layout, but only Header and Footer sections exist under Page layout. Then I searched in Jump to setting... and found Space Settings > Manage Space > Edit sidebar, but there are only two toggle buttons for Overview and Blog and no section to enter markup.
How do I add the TOC to the Sidebar in Confluence Cloud 1000.0.0-da503df1a09f?
Hi Atlassian Community, My name is DJ Chung, and I’m a Product Manager on the Confluence Cloud team. Today, I’m excited to share a new and improved version of Home. The new Home helps you ...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events