Drupal is a registered trademark of Dries Buytaert
Release: Leaflet 10.4.11 Minor update available for module leaflet (10.4.11). Release: Session Inspector 1.0.8 Minor update available for module session_inspector (1.0.8). Release: Migrate QA 2.0.4 Minor update available for module migrate_qa (2.0.4). Release: CKEditor Description List 3.0.0 Major update available for module ckeditor_descriptionlist (3.0.0). Release: FlowDrop 2.4.0 Minor update available for module flowdrop (2.4.0). Release: JWT Token Refresh 1.0.4 Minor update available for module jwt_token_refresh (1.0.4). Release: ConReg 1.0.0-beta1 First beta version released for module conreg (1.0.0-beta1). Release: AI Image Studio 1.0.0-beta8 New beta version released for module ai_image_studio (1.0.0-beta8). Usage Milestone: Statistics Counter Module statistics_counter crossed 1,000 active installs. Module Revived: Decoupled Router 2.0.7 Module decoupled_router updated after 11 months of inactivity (2.0.7).

TOC Node

360 sites Security covered
View on drupal.org

This module automatically generates a Table of Contents for node pages, displaying it above the content or as a block. It includes all visible fields and handles headings from H2 to H6, offering options for indenting, bulleted or numbered lists, and "back to top" links. Settings can be configured per content type or even per individual node.

Provides a Table Of Contents for a node page, which includes all the content of the node.

The TOC will display automatically above content, and is also available as a block, so can be placed anywhere on a page.

This module uses PHP DOMDocument to manipulate content, so may be faster and more accurate than other modules that use a regex approach.

Features

  • Includes all visible fields of a node
  • Doesn't include fields hidden in Manage Display
  • Handles H2 - H6 headings
  • Indenting for each heading level
  • Bullets list
  • Numbered list
  • TOC added automatically above node
  • TOC available as a block
  • Back to top links option
  • Per content type settings
  • Per node settings option

Usage

Set defaults on a content type, each node can also have individual settings.

The TOC will appear at the top of the Content region automatically.

If you add the TOC block to the page the automatic TOC will not display.

Similar Modules

Table Of Contents

Text format filter which converts user entered token into a table of contents. Has a lot of features.

TOC Filter

Text format filter which converts user entered token into a table of contents. A lightweight alternative to the Table Of Contents module.

TOC Formatter

Adds Table Of Contents to a single field as a field formatter option.

Sponsorship

Support

If you've found this module particularly useful and want to say thank you, there's a wide range of stuff I'd welcome on my wish list (UK) (US).

Development

Developed by Robert Castelo for Code Positive.

Activity

Tracked releases
3
Tracked since
Aug 2026
Latest release
1 week ago
Releases (12 mo)
3 ▲ from 0
Maintenance
Active

Release Timeline

Releases

Version Type Release date
2.0.1 Stable Aug 16, 2026
2.0.0 Stable Aug 16, 2026
2.0.x-dev Dev Aug 16, 2026