Create table of contents confluence

Let's create a dynamically expandable table which grows as you add more data to it.

Let's watch this:

 

Ingredients

Guide

Create a dynamic table:

  1. Start by inserting a Table Data macro onto your page.
    For the macro name, let's use "Employees".

    Create table of contents confluence

     Note: This is the Table Data macro which is part of Scaffolding. It is not the same as the standard table in Confluence.

  2. Within that Table Data macro, create a table like the one in the following image:

    Create table of contents confluence

  3. Remember to give each macro an appropriately unique name.

    For each of the List Option macros, make sure to give a proper label, as the labels are what appears as menu options on the pull-down menu generated by the List Data macro.

  4. You can now click on Edit Contents to add data into the dynamic form.
    Click the + button to create more rows in the table. 

Notes

  • There can only be one row containing Scaffolding macros right below the header row.
  • You can use Reporting for Confluence macros to extract data from a table and use that data on another page
  • Remember to use unique Names to avoid conflicts


Result

Create table of contents confluence

Another important navigation element is a table of contents (TOC). All headings of your document are listed in the TOC.

On this page:

Create table of contents confluence

To add a table of contents:

  1. Click the References tab and click Table of Contents.
    The Built-In screen is displayed.
  2. Click Insert Table of Contents.
    The screen Table of Contents is displayed.
  3. You can now change the tab leaders, activate or deactivate page numbers and other properties. For more information see Microsoft Office Help.
  4. Click Options.
    The screen Table of Contents Options is displayed.
  5. Enter the TOC-levels for your specific headings and click OK.
  6. Click OK on the screen Table of Contents.
    You will get the following message from Microsoft Word, because you have not defined headings in your template yet:
    Create table of contents confluence
  7. Click OK.
    No table of content entries found. is displayed in your template, because there aren't yet any content elements which could be listed there.

Style Table of Contents

You can now edit the appearance of your table of contents.

To style the table of contents:

  1. Enter one heading for every level you want to display in your table of contents.
  2. Assign the different heading styles to the headings.
  3. Right-click on No table of content entries found and click Update Field.
    The table of contents is updated and the headings are listed in it.
  4. Click the Dialog Box Launcher in the lower right corner of Change Styles to show the styles.
    The screen Styles is displayed.
  5. Right-click on TOC 1 and click Modify.
    The screen Modify Style is displayed.
  6. You can now change the font, fontsize, color and other properties. For detailled information, see Microsoft Office Help.
  7. Click OK to save your changes.
  8. Repeat steps 4..7 for the other heading levels.
    The table of contents is displayed in the assigned styles.
  9. Delete all (temporary) headings and update the table of contents again.
    No table of content entries found is displayed again, because there aren't yet any content elements which could be listed there.

Info

To populate the table of contents automatically when opening an exported document, you need to create a macro enabled Word template (*.docm) with the corresponding logic. For more information, see Using Word Macros.

Separate title page from content

To separate the title page from content:

  1. Open your Word template.
  2. A page break is inserted.
  3. Enter the placeholder $scroll.content on the position where you want the content to start.
    In contrast to other placeholders you can use the $scroll.content only once in your template.
  4. Save your template.

Congrats! You have now successfully created a table of contents and styled it.

How do I create a table of contents in Confluence?

To add the Table of Contents macro to a page:.
From the editor toolbar, choose Insert > Other Macros..
Choose Table of Contents from the Confluence content category..
Enter any parameters..
Choose Insert..

How does Confluence table of contents work?

The Table of Contents macro scans the headings on the current Confluence page to create a table of contents based on those headings. This helps readers find their way around lengthy pages, by summarizing the content structure, and by providing links to headings.

How do I edit table of contents in Confluence?

1 answer. When you are editing the page, there should be a little box labeled "Table of Contents." Select it and click Edit. That opens a dialog box where you can set all the options you want for your TOC. For descriptions of those options, refer to the help for your version of Confluence.
Insert a table contents (TOC) at the top of the page. Save your page and for the heading that you want to link to, copy the link from your TOC. Edit your page again, insert a link (web link) and paste the link that you copied.