Drupal is a registered trademark of Dries Buytaert
drupal 11.3.7 Update released for Drupal core (11.3.7)! drupal 11.2.11 Update released for Drupal core (11.2.11)! drupal 10.6.7 Update released for Drupal core (10.6.7)! drupal 10.5.9 Update released for Drupal core (10.5.9)! cms 2.1.1 Update released for Drupal core (2.1.1)! drupal 11.3.6 Update released for Drupal core (11.3.6)! drupal 10.6.6 Update released for Drupal core (10.6.6)! cms 2.1.0 Update released for Drupal core (2.1.0)! bootstrap 8.x-3.40 Minor update available for theme bootstrap (8.x-3.40). menu_link_attributes 8.x-1.7 Minor update available for module menu_link_attributes (8.x-1.7). eca 3.1.1 Minor update available for module eca (3.1.1). layout_paragraphs 2.1.3 Minor update available for module layout_paragraphs (2.1.3). ai 1.3.3 Minor update available for module ai (1.3.3). ai 1.2.14 Minor update available for module ai (1.2.14). node_revision_delete 2.0.3 Minor update available for module node_revision_delete (2.0.3). moderated_content_bulk_publish 2.0.52 Minor update available for module moderated_content_bulk_publish (2.0.52). klaro 3.0.10 Minor update available for module klaro (3.0.10). klaro 3.0.9 Minor update available for module klaro (3.0.9). layout_paragraphs 2.1.2 Minor update available for module layout_paragraphs (2.1.2). geofield_map 11.1.8 Minor update available for module geofield_map (11.1.8).

custom_toc

No security coverage
View on drupal.org

Overview

Custom TOC provides a field type that stores editable Table of Contents markup. The CKEditor widget can generate a starter TOC from a chosen source field and lets editors refine link text per page. The formatter renders the saved TOC so the published page matches the stored field value.

Features

  • Generate a TOC from headings and edit link text per node.
  • Keep TOC output stable across view modes.
  • Handle missing or removed fields safely.

Requirements

  • Drupal core 10 or 11.
  • toc_api module enabled.

Installation

  1. Enable the module.
  2. Add the "TOC (CKEditor)" field to a content type.
  3. Select a formatted text source field (text processing enabled).

Configuration

  • Choose the source field for heading extraction.
  • Set allowed text formats and a default format.
  • Configure toc_api "TOC type" settings for headings and template.

Usage

  1. Create or edit content with headings in the source field.
  2. Click "Regenerate TOC" to build the initial markup.
  3. Optionally edit the TOC HTML, then save the node.

Notes

  • Avoid enabling toc_api_example to prevent heading id changes on view.

Activity

Total releases
2
First release
Jan 2026
Latest release
3 months ago
Release cadence
0 days
Stability
100% stable

Releases

Version Type Release date
1.0.1 Stable Jan 17, 2026
1.0.0 Stable Jan 17, 2026