Nigel Cunningham
Original author
The Table of Contents filter scans pages for heading tags (like h1, h2, etc) and automatically generates a nested list of these tags as a table of contents. Each entry in the table is made into an html link to the actual heading.
The plugin has both global and local settings.
(The local settings allow you to override the global settings on a per page basis.)
You can also hide specific headings from the TOC by wrapping the heading in a div with class="non-toc". For example,
<div class="non-toc">
<h1>Lesson 1 — Greco-Roman Civilisation</h1>
</div>
By default, the location of the TOC is placed at the beginning of the page. However, you can nominate a different position by putting the string
[contents]
where you want the TOC to appear.
CSS styling may be used to modify the appearance of the table. The entire table is contained within a div with the 'toc' class. The backlinks have the class 'toc_link' applied to them. For example,
/* Hide bullets in TOCs */
.toc ul {
list-style: none;
}
(Add to the custom CSS field of your moodle theme.)