Table of Contents within pages

nikle - October 17, 2005 - 01:20
Project:Wiki
Version:4.6.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

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

#1

moshe weitzman - November 1, 2005 - 16:55

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

nikle - February 5, 2006 - 11:10

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

moshe weitzman - April 10, 2006 - 03:39

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

 
 

Drupal is a registered trademark of Dries Buytaert.