Download & Extend

Table of Contents within pages

Project:Wiki
Version:4.6.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

Auto generate a per page table of contents based on headers.

For example you might have a page with
!!!Main Topic
!!Sub Topic
!SubSub Topic

Then at the top maybe on the side of the page, or even in a block you would have the following anchored linkts
Main Topic
-Sub Topic
--SubSub Topic

Comments

#1

you could generalize this to be a differnt filter module which cnanned for h1, h3, h3, etc. and built a TOC from the whole post. you would enable that module and have it run *after* wiki.module in order. rearranging filters is part of the input formats system.

#2

I'm not sure this works the same way as you suggested but I managed to make some headway at http://drupal.org/node/29559

#3

there is now TOC functionality in the jstools package from contrib. i haven't tried it out yet.