NewsQuote << | Content |
CreateToc
Creates a Table of Contents from Headings (h1 - h6)Suggested Name:
CreateToc
Droplet Code:
Parameters required:
-none-
Parameters optional:
float=right&number=1
Example Call:
[[CreateToc?float=right]]
Create a Table of Contents by extracting all headings from a page
[[CreateToc?float=right]]
Let the Toc float right
[[CreateToc?number=1]]
Number the menu entries
You may style the Toc by CSS class "toc".
Please note: If your template contains "hardcoded" headings, they will appear in the Toc, too. So you may have to replace hardcoded headings with some other markup.
If you have Droplets v1.5 or higher, you can import the droplet instead of pasting the code into the form. Download here.
Submitted By: WebBird
NewsQuote << | Content |