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).
If I'm missing something, could you please let me know? Dan
I am using Moodle 2.4, the block works well as do not show the hidden topics.
The problem that I am having is the following:
The block is not visible in the front page menu "Add a block". I don't need to add the block in the front page but in all the course pages. I have created an instance in one course and chosen "Display in any page". The problem is that it doesn't create the instances in the other pages. i have tried also to choose the other options.
Do you suggest to add the block manually in each course page or there is another solution?
Regards
Monia
Slight request for collapsed course formats. Would it be possible for it to expand the section when you click on the link if the section is collapsed beforehand?
Hoping you can help me with this query from one of our moodle champions;
------------------------------------------------------------------------------------------------
The Course Content Bar defaults to NUMBERING the sections in Moodle 1, 2, 3, 4
If Moodle were completely linear for me and if I was not using ORPHANS this would be great.
Right now it is confusing my students a bit.
Question:
Is there a way to get rid of the sequential numbering in the Course Contents bar?
The master branch declares the version as DEV which is ALPHA - see https://github.com/mudrd8mz/moodle-block_course_contents/blob/master/version.php
Thank you for this very useful block!
I have weekly format courses and I would like to show the range of weeks with the short format (for example 5/08/2013 - 11/08/2019), ignoring the summary of each section. How can I do this?
Regards,
Andreas
I cannot find anything in Moodle coding standards or any other docs, recommending where a third party library should be installed but I would have thought it should be in /local rather than in a block or mod?
How would you suggest getting around this kind of clash?