Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

TOC Node

Security covered Under active development 212 sites

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.

Drupal 10–11

Ask your assistant about TOC Node

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

  • 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
3 months ago
Releases (12 mo)
3 ▲ from 0
Maintenance
Active

Release Timeline

Releases

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