Moodle Plugins directory: Course contents | Moodle.org

Course contents
Warning! This plugin is no longer maintained. It may work in recent Moodle versions but there is no support. For details of how you can become the new maintainer, see Plugins adoption programme.
Course contents block is a plugin for Moodle that displays a list of all visible sections (such as topics or weeks) in the course. Clicking at a link scrolls to that section or displays just that particular section, depending on the course layout setting.
If the section name is explicitly defined, it is displayed in the course contents outline. If enabled, the block can eventually extract a suitable section title from the section summary text.
Background
In older Moodle versions, course sections could not be named explicitly. Many teachers used to put headings manually to the course summary text fields. This block did an awesome job that it automagically extracted these headings from the summary fields and generated a nice course contents from them.
This feature is still available but it is less useful in modern Moodle versions where course sections can have explicit section titles defined.
Automatic section title
If the section name is not explicitly defined and the auto title feature is enabled, the block automatically extracts a suitable title for the section from the section summary text.
If the summary starts with a heading (H1, H2, H3, etc), the heading will use such heading text. If the summary starts with a bold text, it will be used as a section title. If the summary consists of several paragraphs, the first one will be used.
Technically speaking, the plain text content of the first non-empty HTML DOM node from the section summary can be used as the summary title.
Tips and features
- Section titles can be enumerated.
- You can combine the auto title feature with the multi-language filter to generate course contents in the user's language.
- The block fits nicely into multipage course layout (introduced in Moodle 2.3).
Thanks Germán for testing. I just released a version 5.1.1 that has been tested against Moodle 3.4. There are no functionality changes from the version 5.1. Just the reported coding style violations have been fixed and travis-ci integration updated.
Ray, can you please go to https://github.com/mudrd8mz/moodle-block_course_contents/issues and describe your particular issue there? I believe it will something trivial as it works in 3.5 as expected.
Bryce, can you please raise it as an issue in the plugin's tracker and provide more details on how the block is configured and how the course looks like. Thanks.
Hi Tim. Currently, this plugin would allow you to have the headings only, not subheadings. However, I like that as a feature - and it would also add a value to this block over the standard navigation widgets. How do you have these subheadings implemented in your courses? Is it via HTML headings in the Label instances or so?
Thank you!
Stephanus
@Stephanus - sorry the information was not updated for a while. I just tested and it works well in recent Moodle versions.
@Tim - thank you for the info. I will think about it. As I said, I like the use case and I can see it as an opportunity for the plugin to be pretty useful.
Hi Clare. I can confirm the latest block version works well with Moodle 3.9 and I just marked it as a supported version.
@Tim Tarbotton may I ask you to report your use case as a new feature request in the plugin's issue tracker at https://github.com/mudrd8mz/moodle-block_course_contents/issues Thank you in advance.
Thanks Dr. Nellie. I just released a new version 6.0.0 for Moodle 3.9 and 3.10 with a few improvements - see the release notes at https://moodle.org/plugins/pluginversion.php?id=23456