Do you want to add a Wikipedia like Table of contents box on some of your long Moodle lessons. A table of content box makes is easier for users to navigate directly to the section they want to read. In this article, I will show you how to add a table of contents box to your Moodle lessons.
- Automatically adds the Table of contents box on top of a Moodle lesson page.
- Easy to use.
- Minimal configuration required
Being a filter type plugin, the Table of contents plugin needs to be installed in your-moodle-site/filter directory followed by completing the installation process through the Notifications page. Read the Plugin installation guide for complete steps about installing a new plugin in Moodle.
The plugin is mainly intended to be used only on long Moodle pages and lessons. So that the users can easily navigate to the section they want to go through.
How to use it:
First thing you need to download and install the Table of Contents Generator Moodle Filter plugin. Once installed, you need to configure the options for the plugin as a site administrator. You can configure the specific heading tags which needs to be included in the TOC as shown in the image below:
After that you need to make sure that the filter is enabled on the Course level also. Once ensured, when you create any Moodle lesson content page or a Page resource, the filter will automatically scans the heading tags within the content and creates a Table of Contents box on the top of the page. If you want to change the place of the TOC box, you can simply put [contents] in the HTML view of the page.
You will get a table of contents box on top of the page like this:
Does it serves the purpose?
Mainly intended to address a very specific problem, the Table of Contents generator plugin works like a charm. However the filter plugins may end up in increasing the load on your servers, so better to use them only when they are specifically required.
Supported Moodle Versions:
The plugin is currently supported for Moodle 3.0 version onwards till Moodle 3.3.
You can download the Table of Contents generator plugin from the Moodle plugins directory through this link.
Do you ever need to add a table of contents to your Moodle pages? How did you add that? Do let us know in the comments section below.