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).

Custom TOC

No security coverage Drupal 10–11
View on drupal.org

Custom TOC allows editors to create and manage tables of contents within Drupal. It offers a field type that stores editable TOC markup, and a CKEditor widget to generate a starter TOC from a chosen source field, enabling editors to refine link text for each page. The formatter then displays the saved TOC, ensuring consistency between the draft and published content.

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.

Depends on

Dependencies of the latest stable release

  • toc_api Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
2
Tracked since
Jan 2026
Latest release
7 months ago
Releases (12 mo)
2 ▲ from 0
Maintenance
Slowing

Releases

Version Type Core Release date
1.0.1 Stable 10–11 Jan 17, 2026
1.0.0 Stable Jan 17, 2026