Skip to main content
drupalreleases
Release: Cms 2.2.3 — Update released for Drupal core (2.2.3)! Release: Easy Breadcrumb 2.0.11 — Minor update available for module easy_breadcrumb (2.0.11). Release: Menu Link Attributes 8.x-1.9 — Minor update available for module menu_link_attributes (8.x-1.9). Release: Bootstrap 8.x-3.42 — Minor update available for theme bootstrap (8.x-3.42). Release: PhotoSwipe - Responsive JavaScript Modal Image Gallery 5.0.11 — Minor update available for module photoswipe (5.0.11). Release: Search API attachments 10.0.13 — Minor update available for module search_api_attachments (10.0.13). Release: Editoria11y Accessibility Checker 3.0.10 — Minor update available for module editoria11y (3.0.10). Release: Mismatched entity and/or field definitions 1.2.1 — Minor update available for module meaofd (1.2.1). Module Revived: Bootstrap 8.x-3.41 — Theme bootstrap updated after 6 months of inactivity (8.x-3.41). Security Coverage: Component Library — Module component_library now has official Drupal security advisory coverage.

TOC Node

218 sites Security covered Drupal 10–11
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.

Depends on

Dependencies of the latest stable release

  • node Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

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

Release Timeline

Releases

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