The day before yeserday I published a Mootools class that creates a table of contents of all the headings on a page. This can also be done with php and this will be a faster and cleaner method. See the code below:

View example Download file


The usage

The syntaxhighlighter messes up the php so look at at the function createIndex() in this phps file.

echo createIndex($text);

Related Posts

Leave a Comment

Get your own Gravatar!
Your email will never be published!

Notify me of followup comments via e-mail

Top of Page