Table of Contents Generator
Maintained by
Ben Chenoweth
Automatically generated table of contents for a page of content.
Comments
Comments are no longer open for new posts. Existing comments remain available to read.
Thank you for the patch.
Installed and tested on Moodle 4.1.3+ (Build: 20230602)
It is working as expected. Will update here and on Github if I see any issues.
https://github.com/benchen71/moodle-filter_toc/issues/5
Sorry, but I am no longer able to support this plugin. I am not currently working at a place that uses Moodle, so I cannot do the required testing of any changes made to the code. The code itself is located at https://github.com/benchen71/moodle-filter_toc.
We have one suggestion for that plugin.
As far as we use a custom theme, we need to style the "a" tags that support the table of content, so that vertical alignment is correct.
It would be great to a a specific class on "a" tags added in filter.php line (lines 78 et 80).
Kisses
Zabelle
/* Hide bullets in TOCs */
.toc ul {
list-style: none;
}
There are no bugs that I am aware. My only guess is that all of the headings on your page are h4 headings. So when you remove h4 from the settings, there are no headings left to generate a TOC.
[contents]
where you want the TOC to appear on the page itself.
I am happy to announce that Ben Chenoweth became a new maintainer of this plugin and hopefully will be able to release an update for more recent Moodle versions soon. Good luck Ben, and thanks for your offer to maintain this!