Creating an automatic table of contents

You can create a table of contents automatically compiled from page headings. To do this:

  1. Make sure the page headings have the correct markup.

  2. Create a table of contents using a dynamic block:

    {{toc}}

All headings on the current page are automatically included in the table of contents by default. You can change how your table of contents is displayed by using additional parameters.

An example of a table of contents that includes first (h1) to third (h3) level headings.

{{toc from="h1" to="h3"}}