Maketoc Filter

Created by: Kozuch, Last modification: 02 Jul 2008 (03:50 UTC) by Will
When you insert the maketoc tag into a wiki page, it will create a nested table of contents based on the headings in that page.

The tag:

<?php
{maketoc}
?>

Styling:
In your css style sheet you can target the look and size of the table of contents by assigning styles to class .maketoc

Example:

Headline one

Headline two

Subheadline a under headline two

Subheadline b under headline two

Headline three


Page source for the above example:


<?php
{maketoc}
!
Headline one
!Headline two
!!Subheadline a under headline two
!!Subheadline b under headline two
!Headline three
?>