TableOfContentsX
Create an automatic Table of Contents based on any MODX content.
Creator: Stewart Orr (stewartorr)
About TableOfContentsX
This extra takes your MODX content and creates an ordered list table of contents based on the h1,h2,h3,h4,h5 and h6 tags. This can be used so that long articles and pages can be broken down and makes it easier for the user to click a section they'd like to jump to.
Information
Released
February 24, 2026
Supported Database
MySQL, SQL Server
License
GPLv2
Instructions
Install package using package manager and then follow install instructions in the readme or on my site: https://www.stewartorr.co.uk/tableofcontentsx
New in 1.3.1-pl
Changelog for TableOfContentsX package.
TableOfContentsX 1.3.1 - 22/02/2026
- Added new options to control templating, minimum and maximum headers.
- Updated code to allow for header tags with attributes and child tags
- Updated to work correctly with duplicate header titles
TableOfContentsX 1.2 - 12/07/2019
- Fixing an issue special characters in a heading breaking the page anchors.
TableOfContentsX 1.1 - 13/12/2017
- Fixing an issue with installing on 2.6.0
TableOfContentsX 1.0.1 - 28/08/2013
- Missed off the url relative to the document, breaks sites with
TableOfContentsX 1.0 - 23/08/2013
- First version - I hope you find it useful!