FlexWiki Toc

By aaubry Last update Nov 15, 2007 — Installed 46 times. Daily Installs: 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
Script Summary:
Generates a table of contents from the headings present in a FlexWiki page

Remotely hosted version

Script homepage

This script has no discussions.

start the discussion

This script has no reviews.

The script is very simple. It simply finds every H1, H2 and H3 element and adds an anchor to it, then creates a list of links to those anchors that is inserted on the beginning of the document.

The script can easily adapted for another use. The variable root contains the element on which the headings are searched. The list of links is added to that element.