Can I edit a table of contents, and mix headers from this page with explicitly added links
Asked by Confused Newbie:

My employer uses confluence. I don't know what version, or how to find out the version.

I have a page that's grown too big to be a single page. I'd like to have a table of contents that:

* includes headers from this page
* includes links to some(?) sub-pages
* maybe includes links to headers within sub-pages
* includes links to other pages, both in the same confluence instance, and on other internal sites

I particularly want these links in the table of contents. I currently have a situation where you click on a header in the TOC, which goes to a section with text saying "click here to go to the page where this content was moved", which is in fact a link to the right place.

Actually, the header \*itself\* is also a link to the sub-page, but only as it appears in the main part of the topmost page - that property isn't preserved in the table of contents.

And I can't just create any of these pages in a correct state; I need to modify existing pages.

This wouldn't matter in a standard wiki, but my understanding is that with confluence, while you can \*create\* content using markup, you have to edit it in WYSIWYG mode. So advice like "use such and such macro but change..." probably won't work once the TOC is created - i.e. I won't be able to have "same as before, except ...."

And oh yeah - I'm really inept with GUIs, particularly if they involve icons rather than text. There may be a way to edit (i.e. change macro parameters affecting) the little box that shows "Table of Contents" plus an icon to its left, when the page is in edit mode. But all I can figure out how to do with it is to drag or possibly delete it.


Answers:
author: Jared Brenner
body: Hi Noob,

I'd consider this a prime opportunity to start learning more about Confluence :)

Here are some macros you'll want to experiment with:

* [Table of Contents](https://confluence.atlassian.com/doc/table-of-contents-macro-182682099.html)
* [Table of Content Zone](https://confluence.atlassian.com/doc/table-of-content-zone-macro-189890742.html)
* [Excerpt](https://confluence.atlassian.com/doc/excerpt-macro-148062.html)
* [Excerpt Include](https://confluence.atlassian.com/doc/excerpt-include-macro-148067.html)
* [MultiExcerpt](https://marketplace.atlassian.com/apps/169/multiexcerpt?hosting=server&tab=overview) (paid)
* [Page Tree](https://confluence.atlassian.com/doc/page-tree-macro-163414255.html)
* [Children Display](https://confluence.atlassian.com/doc/children-display-macro-139501.html)

If you click on a macro while in the editor, you'll see available options pop up underneath it:

![Edit.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/46702iC4A84AB9EB10C217/image-size/large?v=v2&px=999 "Edit.PNG")

Click Edit to interact with the macro and change its settings:

![edit options.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/46703i5ED50F229A231C7F/image-dimensions/499x307?v=v2 "edit options.PNG")

You can always experiment with macros in your [personal space](https://confluence.atlassian.com/conf612/create-your-personal-space-958777149.html) before implementing them for your team. Good luck, we believe in you!


Tags: confluence-server

server