Create easy to navigate Moodle lessons using the Table of Contents generator plugin

Automatically generate the table of contents for a page

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.

Features:

  • Automatically adds the Table of contents box on top of a Moodle lesson page.
  • Easy to use.
  • Minimal configuration required

Installation:

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.

Intended Usage:

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:

Create easy to navigate Moodle lessons using the Table of Contents generator plugin

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:

Create easy to navigate Moodle lessons using the Table of Contents generator plugin
Image Source: Moodle Plugins directory – https://moodle.org/plugins

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.

Download:

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.

Jaswinder Singh

Jaswinder Singh, passionate about using Moodle in improving the Indian Education System and reaching the students in far flung areas where still education seems to be a impossible prospect of life. He is the author of the popular Moodle Book "How to use Moodle 2.7". In October 2016, Jaswinder was elected as the Moodle User's Association Committee member - the first to make it from India.

Related Articles