Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Tocbot - Automatic Table of Contents

Security covered Under active development 1,462 sites

This module integrates Tocbot to automatically generate a table of contents from headings on a page, making long content easier to navigate. It provides a configurable block and can assign unique IDs to headings.

This module provides a wrapper around Tocbot which builds an automatic table of contents (TOC) from headings in an HTML document. This is useful for documentation websites or long informational pages because it makes them easier to scan and navigate.

What this module provides

  • A block is created that will contain the automatic table of contents
  • You can configure the Javascript settings from a Drupal configuration page (such as where on the page to look to grab headings)
  • A minimum heading limit can be set so it won't activate on simpler pages (default 3)
  • Uses css/js from a CDN by default, but you can provide library files if you want to host those locally using the drupal.org/project/libraries module.
  • Tocbot requires ID attributes on your headings to work properly, this module will create automatic ID's for your headings but can be disabled if you want more control or another module already creates ID's.

Demo

Drupal 10–11

Ask your assistant about Tocbot - Automatic Table of Contents

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
8
Tracked since
Jul 2023
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 4
Maintenance
Slowing

Release Timeline

Releases

Version Type Core PHP Release date
2.0.4 Stable 10–11 Sep 26, 2025
2.0.3 Stable 10–11 Sep 24, 2025
2.0.2 Stable 10–11 Apr 23, 2025
2.0.1 Stable 10–11 Oct 21, 2024
2.0.0 Stable 10–11 Jun 27, 2024
2.0.x-dev Dev 10–11 Jun 27, 2024
8.x-1.0-alpha3 Pre-release 8–10 Jul 11, 2023
8.x-1.x-dev Dev 8–10 Jul 11, 2023