Using panel titles in Table of Contents
Asked by Kevin Boots:

Hello all,

I'm currently trying to get titles used in the Panel macro into a table of contents. Is this possible or do I have to add these in a different way?


Answers:
author: Dario
body: Good morning,

I have the same issue and I have been looking for an alternative for panel without successful.

Anyway, I would like to apply the solution provided by [@AnnWorley](/t5/user/viewprofilepage/user-id/502040) but I have several pages with the same problem. Also, other problem would be removing the label title from panel in order to avoid repeat the same title.

Do you know how to apply this alternative in automatic way?

Thank you in advance.

Dario


author: Steve Gibbons
body: I have added h2. text as the first line within my panel and made it the panel title / header. Then added the panel content under the h2. text.

I agree panel titles should have an "include in TOC" check box option, but this works with less effort than the Anchor macro option


author: Laura Schalk
body: I would love to see a way to easily include panels in the ToC while still formatting the content itself as paragraph. How about a checkbox for "include in ToC" or a way to format the panel title in the edit dialogue for the panel?

For now, I got around it by adding a heading in white (invisible) text above the panels.

comments: author: Peterson Vicente
body: just did the same. Thanks


author: AnnWorley
body: The table of contents (TOC ) macro picks up Headings so if you format the titles within the macro as Headings they will be linked in the TOC.

![Screen Shot 2017-09-18 at 4.43.34 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/6462iA06A93E1A0F8ECF5/image-size/large?v=v2&px=999 "Screen Shot 2017-09-18 at 4.43.34 PM.png")

If you need the TOC to link to the title of the panel macro itself, you will have to build the TOC manually using the anchor macro above each panel, and links to the anchors.

comments: author: Grady Drew
body: That's sub-optimal. :(


author: Jean-Philippe Larochelle
body: Thats not good indeed, it would be nice to be able to add headings to panel titles so that it appears in the TOC


author: Jonathan Smith
body: [@AnnWorley](/t5/user/viewprofilepage/user-id/502040) Is there an open suggestion that we can vote on to make the panel title 'findable' in table of contents macro?


author: Jonathan Smith
body: (even if we can default it to h3) :D


author: Timothy Wilson
body: I was looking to use panel title in a TOC as well... Boss wants a TOC with links to make getting to a topic someone is looking for quickly. I used panels and have everything looking organized and sorted. Sad that you need to add another layer of work into the page and that it isn't simple to use them in the TOC and not have to redo everything I started.


author: Bodhi Dasgupta
body: OMG!!! This is such an inefficient thing to do !! Why can't you just have an option in the "Panel" macro that says "Show in Table of Contents"... that's all !!!

It is sometimes SO DIFFICULT to make a really good looking and organized page in confluence that I wonder whether you guys really want to make it hard for us


author: Scott DeLugan
body: Agreed. TOCs should be able to link to headings within panels, especially if the TOC recognizes them as links.