Blocks: Course contents

block_course_contents
Maintained by Picture of David MudrákDavid Mudrák
Course contents block 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.
1214 sites
345 downloads
69 fans
Current versions available: 11

Build status

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).

Screenshots

Screenshot #0
Screenshot #1
Screenshot #2
Screenshot #3
Screenshot #4

Contributors

Picture of David Mudrák
David Mudrák (Lead maintainer)
Picture of Dan Marsden
Dan Marsden: Contributor
Picture of Petr Skoda
Petr Skoda: Contributor
Picture of Nicolas Dunand
Nicolas Dunand: Contributor
Please login to view contributors details and/or to contact them

Comments RSS

Comments

  • Picture of rafa botello
    Wed, Feb 8, 2012, 11:51 PM
    thanks, it's works
  • Picture of Sam Stegers
    Wed, Oct 10, 2012, 9:50 PM
    Hello David and others,

    When I use this block and I set conditional access to a topic (Moodle 2.3) the student still sees the link to a hidden topic in the course content block. Naturally when the student clicks on the link to the (not yet available) topic, he/she receives a message that she/he is not allowed to view hidden topics.

    I think it would be nicer (if possible) to only show visible topics in the course content block instead of all topics as it seems to be the case now.

    Regards,

    Sam
  • Picture of David Mudrák
    Fri, Oct 12, 2012, 10:30 AM
    Hi Sam. I agree, it's a bug. Can you please report it at https://github.com/mudrd8mz/moodle-block_course_contents/issues
Please login to post comments