Auto Table of Contents (TOC) Block
Categories
Component ID
2096319
Component name
Auto Table of Contents (TOC) Block
Component type
module
Maintenance status
Development status
Component security advisory coverage
not-covered
Component created
Component changed
Component body
Examines the #block-system-main block (by default, but this is configurable) and creates a table of contents block (by looking for header tags, again by default but can be configured to look for other markup) with anchors to that part of the page.
The plan right now is to have two options for implementation:
The first is to use JavaScript/jQuery to read the DOM and create the table of contents.
The second option is a PHP implementation using http://drupal.org/project/querypath as the DOM parser.
The end user would have the choice as to which method they'd like to use.
