This module provides a wrapper around Tocbot which builds an automatic table of contents (TOC) from headings in an HTML document. This is useful for documentation websites or long informational pages because it makes them easier to scan and navigate.

What this module provides

  • A block is created that will contain the automatic table of contents
  • You can configure the Javascript settings from a Drupal configuration page (such as where on the page to look to grab headings)
  • A minimum heading limit can be set so it won't activate on simpler pages (default 3)
  • Uses css/js from a CDN by default, but you can provide library files if you want to host those locally using the drupal.org/project/libraries module.
  • Tocbot requires ID attributes on your headings to work properly, this module will create automatic ID's for your headings but can be disabled if you want more control or another module already creates ID's.

Demo


Demo of Tocbot
Supporting organizations: 
Ongoing maintenance
Ongoing maintenance
Ongoing maintenance
Initial module development

Project information

Releases