GovNL CMS Table of Contents
This module automatically creates a table of contents from the headings within your content. It supports hierarchical navigation, is configurable to your needs, and includes options to skip certain elements. The module also automatically generates IDs for headings and ensures accessibility.
A Drupal module that automatically generates a table of contents based on the headings in your page content.
Features
- Automatic detection: Automatically scans headings (H2-H6) in your content
- Hierarchical navigation: Displays nested lists based on heading structure
- Configurable: Choose which heading levels should be scanned
- Minimum threshold: Set how many headings are required to display the TOC
- Skip selectors: Exclude specific elements via CSS selectors
- Default skip selectors: Central configuration for selectors that should always be skipped
- Automatic IDs: Automatically generates URL-friendly IDs for each heading
- Special characters: Supports special special characters in headings
- Accessibility: ARIA labels for screen readers