Course formats: Collapsed Topics

Maintained by Gareth J Barnard Gareth J Barnard
An interchangeable topic or week based format that solves the issue of the 'Scroll of Death' when a course has many topics.
4589 sites
65 fans

An interchangeable topic or week (day for 2.3.1+) based format that solves the issue of the 'Scroll of Death' when a course has many topics / weeks. All sections except zero have a toggle that displays that section. One or more sections can be displayed at any given time. Toggles are persistent on a per browser session per course basis but can be made to persist longer by a small code change. Full installation instructions, code adapt-ions and credits are included in the '' file.

If you have a course with more than fifty two sections then currently the toggle persistence will not work for the fifty third section and above.  Then you need to upgrade to the Moodle 2.5 version+.

REPORTING ISSUES: When reporting issues you MUST clearly state the full version and release of both Moodle and the Collapsed Topics format as contained within their 'version.php' files - if not it takes me longer to figure out, often resulting in me asking for the details anyway and slowing the process of solving your problem down.  It really helps to read the 'Reporting Issues' section in the 'readme' file and upload and describe in detail the issue you are having on the 'Course formats' forum.

NEW: 'The Complete Guide to Collapsed Topics' (and 'Blurb') book is now available, covering: installation, upgrade, uninstallation, course and global features, resetting, capabilities, language strings, overriding icons / styles in a theme and adding a new icon set.

The Complete Guide to Collapsed Topics book

The Complete Guide to Collapsed Topics book on a book stand

Inside the Complete Guide to Collapsed Topics.

NOTE: The latest version incorporates functionality to support new UK / EU Cookie Law which is implemented as a user acceptance in the 1.9 version and no 'cookie' is used at all in 2.x versions.

Screen casts:


Screenshot #0
Screenshot #1
Screenshot #2
Screenshot #3
Screenshot #4
Screenshot #5
Screenshot #6
Screenshot #7


Gareth J Barnard
Gareth J Barnard (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Gareth J Barnard
    Tue, 14 Mar 2017, 9:10 PM
    Hi Annick,


    Kind regards,

  • Picture of james lunn
    Tue, 2 May 2017, 6:48 PM
    Hello, i'm new to this, I just installed collapsed topics folliwing the readme. it installed, I can adjust the settings, and when I am in my admin account and edit the course, I can see all the collapsed options. However, when I turn editing off or log in with a student account, I don't see any of the collapsed functionality. The primary reason I installed it was so students would see all of the topics expanded by default. Any thoughts?
  • Gareth J Barnard
    Wed, 3 May 2017, 3:14 AM
    Dear James,

    Please post screen shots of the issue, what you did when creating the courses (i.e. the setting values) and Collapsed Topics and Moodle version to

  • Picture of Yamila Jara
    Sun, 14 May 2017, 11:39 AM
    I wanna use this format in all my courses. One question: there is a way to hide the text "open all" and "close all"? I think they are not necessary, this format is very intuitive. Thanks in advance
  • Gareth J Barnard
    Sun, 21 May 2017, 6:30 AM
    Hi Yamila,

    That can only be hidden with code changes.

    Kind regards,

  • Picture of Mike Wilday
    Fri, 26 May 2017, 5:44 AM
    Hi Gareth,
    There are a couple of issues with this plugin that I'd like to request be updated.
    1. When tabbing through the course menu settings the colored boxes are totally skipped while tabbing - this is an accessibility issue.
    2. it might be a good idea to update the text from Toggle Foreground to "Toggle Text" You explain it in the question mark, but it might make more sense to put it right in the title for clarity's sake.
    3. Please add the ability to include "transparent" in the color options. I would like the background to flow through the background without having to recreate the color.
    4. It feels like your Open all/close all icons are backward. For instance, the light diode icon colors are backward in the Open All Close all buttons. Open all should be green and Close all should be red.

    Thanks for the plugin!
  • Gareth J Barnard
    Fri, 26 May 2017, 6:02 AM
    Hi Mike,

    Thank you for your comments.

    1. Can be solved by removing 'tabindex' from tc_colourpopup.php.
    2. I'll think about it.
    3. Would you willing to fund this enhancement please?
    4. This was debated at length many years ago and the icon before hover shows the icons affected and when hovering what will happen. So is correct unless diode is specifically wrong.

    Kind regards,

  • Picture of Mark Glynn
    Fri, 23 Jun 2017, 3:49 AM
    Hi Gareth,

    Like the others on the list, I think that this is a great plugin - thank you so much. The plugin does not currently work for the new feature of "stealth activities". Is it on your roadmap to update this and if so what timeframe would you have in mind?

    Kind regards

  • Gareth J Barnard
    Fri, 23 Jun 2017, 3:56 AM
    Hi Mark,

    The format does currently implement "stealth activities" as implemented in version of the 6th June 2017:

    Kind regards,

  • Picture of Alberto García Gómez
    Tue, 4 Jul 2017, 8:06 PM
    Hi Gareth, great plugin.

    How can I disable the "One section only" function?

    Thank you very much.

  • Gareth J Barnard
    Wed, 5 Jul 2017, 12:29 AM
    Hi Alberto,

    What version of Collapsed Topics are you running? Could you be a bit more specific please.

    Kind regards,

  • Picture of Alberto García Gómez
    Wed, 5 Jul 2017, 3:15 AM
    Sorry, I'm using version (2017042202)

    We need to disable the "View only..." button:

    Thank you.
  • Gareth J Barnard
    Wed, 5 Jul 2017, 4:58 AM
    Hi Alberto,

    I see, currently that cannot be done without changing the code, however the client loves the functionality.

    Kind regards,

  • Picture of Alberto García Gómez
    Wed, 5 Jul 2017, 2:33 PM
    Thank you Gareth, but our clients are very confused with this functionality and we're receiving many messages about it.

    We are going to hide it using css.

    Kind regards

  • Gareth J Barnard
    Thu, 6 Jul 2017, 1:59 AM
    Hi Alberto,

    Fair enough.

    Kind regards,

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
Please login to post comments