Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Usage Milestone: Google Analytics Module google_analytics crossed 1,000 active installs. Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Release: GraphQL Compose Codegen 1.1.2 Minor update available for module graphql_compose_codegen (1.1.2). Release: Mapy.com 1.1.3 Minor update available for module mapycom (1.1.3). Release: Ckeditor5 entity browser 3.0.3 Minor update available for module ckeditor5_entity_browser (3.0.3). Release: Ckeditor5 entity browser 3.0.1 Minor update available for module ckeditor5_entity_browser (3.0.1). Release: Ckeditor5 entity browser 3.0.2 Minor update available for module ckeditor5_entity_browser (3.0.2). Release: Teamleader Integration 4.0.2 Minor update available for module teamleader (4.0.2). Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Tocbot - Automatic Table of Contents

1,304 sites Security covered Drupal 10–11
View on drupal.org

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

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
4
Tracked since
Oct 2024
Latest release
11 months ago
Releases (12 mo)
2
Maintenance
Slowing

Release Timeline

Releases

Version Type Core 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