This content plugin creates a Table of Contents in an article.
To include a Table of Contents, just add this to your article:
{toc}
There are also some optional parameters:
{toc minlevel=2 maxlevel=4 chapternumbers=true prefix=§}
-
minlevel Set the minimum heading level to include in the Table of Contents.
-
maxlevel Set the maximum heading level to include.
-
chapternumbers Set this to
trueto include chapter numbers in the headings and Table of Contents. -
prefix If
chapternumbers=true, this lets you define an additional string that will be inserted before a chapter number.
If you want to exclude a heading from the TOC, you can use the class no-toc, like so:
<h1 class="no-toc">A heading that won't appear in the TOC</h1>Published under GNU Public License 2 (see LICENSE.txt).