You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
This question is in reference to Atlassian Documentation: Panel Macro
I'm working on templates for my team. Is there a way to associate panels to a table of contents? Either with headers or something I haven't thought of?
Thanks for the advice!
Here's a kludgy option. Add a div within a panel and turn it into the title:
Making the text in the Div macro a heading style will get it listed in the TOC:
Here is the CSS I have in the Style field of the Div Macro:
background: pink; position: relative; left: -10px; top: -10px; padding-left: 10px; padding-top: 5px; padding-bottom: 5px; width: 110%;
This solution worked pretty well for me. Thank you for the great example!
The workaround I had been using was to put a heading level 6 just above the panel, and turn it white to become invisible. The small text doesn't create too big of a visual gap between panels.
Then I set the TOC to only display heading 6.
Are you looking for a way to get the panel macro's "title" to show up in a table of contents for a page?
If so, it's not possible as far as I know, but there is a feature suggestion here which you could vote on:
Possible options which might get close to what you want are:
Hi @Sam Hall
I have the same issue here and I am trying to apply your first option (Put headings inside the panel content, so that they are picked up by the table of contents macro.). But my problem is how to apply it in automatic way. I mean, I have more than 2000 pages with this issue and I would like to modify them in one shot instead one by one.
Thank you in advance.
Can you maybe provide an example of what you'd like for the desired output, and an explanation of how you'd like it to work in the editor?