Course formats: Collapsible Topics format

Maintained by Picture of Jean-Roch MeurisseJean-Roch Meurisse
The collapsible topics format is a clone of the core topics format that adds collapsing behaviour to sections in order to reduce page size.
1547 sites
53 fans
Current versions available: 3
The collapsible topics format is a clone of the core topics format that adds collapsing behaviour to sections in order to reduce page size. A plugin setting allow to retain topics collapse state on a per user basis for the current session or across sessions. This plugin is an alternative to Gareth J. Barnard's format_topcoll plugin (see references below) The purpose is to offer a simple collapsing behaviour for sections in order to reduce course home page size without all the display options that Gareth's plugin offers.


Screenshot #0
Screenshot #1


Picture of Jean-Roch Meurisse
Jean-Roch Meurisse (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Picture of jose Nicolas
    Thu, Aug 2, 2018, 8:52 PM
    I installed the Collapsed Topic Plugin on a Campus Virtual running Moodle 3.1. The Moodle was in Traditional Spanish (ES), however after installed the Collapsed Topic plugin the Moodle installation changed to English language (EN), and I am getting some errors that I did not have before the installation of the plugin.
    Specifically when I try to grade some task of students and got the error:
    “Undefined - Invalid parameter value detected”
    Could you please let me know what is going on?
    I am in a hurry; I have looked on Internet and nothing.
  • Picture of Jean-Roch Meurisse
    Fri, Aug 3, 2018, 4:36 PM
    Collapsible topics has been developed for Moodle 3.5. I tested it on 3.3 but not previous versions. Unless you changed the required version in version.php it should not have installed at all.
    Regarding language, i guess the plugin has not been translated into Spanish yet. Since there are only about 15 lang strings,maybe you could do that on
    As for the error, I can try to have a look, but I do not have access to a 3.1 anymore. Please turn on developer debug mode, take a screenshot of the displayed error and write the specific context in which this error occurs (the url for example).
    Not that I will be off for some days
  • Picture of Roland Sherwood
    Mon, Sep 3, 2018, 11:22 PM
    Many thanks for sharing this excellent plugin. One quick question: both this and the collapsibleweeks format force the title of section 0 to be hidden (except when in editing mode). Is there a particular reason for this? If it's purely for aesthetic reasons, I wonder if you might consider including a setting which would allow admins to choose whether the section 0 title is hidden or not? Thanks again.
  • Picture of Jean-Roch Meurisse
    Tue, Sep 4, 2018, 2:54 PM
    Hi Roland, thanks for feedback.
    I'll try to add such a setting in a future version (when I have time to work on it wink )
    In the meantime you can make section 0 name visible by editing section and ticking "custom" next to section name.
  • Picture of VOMC IT
    Tue, Apr 28, 2020, 2:39 AM

    I'm using Moodle 3.8.2 and the Collapsible Topics plugin 3.8.

    When setting the "Hidden Sections" setting under a course whose "Course Format" is set to "Collapsible Topics format", the student is no longer able to collapse and uncollapse topics which are not hidden.

    I posted about this earlier but was unable to delete that previous topic. I have since recorded a video of the behaviour and uploaded it in HD so you can see the behaviour:!AnxN-ismKeetgYtiX51Go3OUzNbtlA?e=oTkN7O

    Since having this issue, I thought it might have to do with my installation or database. I full deleted the database and all files related to Moodle. I did a clean install and only installed the Collapsible Topics plugin 3.8. Before doing this, I purged all caches as well.

    Can anyone replicate this issue? If not, is there any explanation for this?
  • Picture of Jason McGensy
    Thu, Apr 30, 2020, 1:51 AM
    VOMC IT,
    I am seeing similar behavior, under different circumstances. All of the modules seem to expand/collapse for students up until module 25. Module 25-30 do not expand/collapse for the student role when hidden sections are set to invisible. When hidden sections are set to show in collapsed state, all of the modules open and close. Moodle 3.8.2
  • Picture of VOMC IT
    Thu, Apr 30, 2020, 3:55 AM
    Phew... Thank you, Jason. At least it's not just me. Have you had any success in altering this behaviour?
  • Picture of Jean-Roch Meurisse
    Thu, Apr 30, 2020, 2:54 PM
    Hi there,
    Sorry for answering late, but with the current situation all or our ressources are dedicated to transtion to full distance learning and examination in our University following the Covid-19 confinement.
    Could you check the javascript console for any errors?
    Could you also open an issue on please?
    I will investigate the issue asap
  • Picture of Jean-Roch Meurisse
    Thu, Apr 30, 2020, 3:56 PM
    After first quick investigation, it appears that this error occurs only when javascript is not cached (admin-> presentation-> Ajax and javascript->cache javascript, which is normally not the case in production systems.
    Can you confirm?
  • Picture of VOMC IT
    Fri, May 1, 2020, 11:12 PM
    Hi Jean-Roch, thank you for your reply. I went to Appearance -> AJAX and Javascript and turned OFF "Cache Javascript" and the issue no longer presents.
  • Picture of VOMC IT
    Fri, May 1, 2020, 11:14 PM
    Correction: the last topic in the list after a hidden topic shows but the contents do not. I'll proceed to Github per your request.
  • Picture of Matt Long
    Wed, May 27, 2020, 1:32 AM
    First off, thank you for making this plugin! We are not able to use the other Collapsed Topics since it's additional CSS is conflicting with our theme.

    We're using Moodle 3.5, so I installed the 3.6 version of the plugin. We have run into a CSS problem. If I try to edit an activity or resource near the bottom of a section, the Edit dropdown menu does not extend below the section/topic, which means most of the menu gets cut off.

    It looks like this is being caused by an overflow:hidden rule on a parent div (specifically, the rule targets the .collapse class). However, that seems to be the rule that allows the topics to collapse and "hide", so I can't change it. I'm guessing there's a CSS trick that would allow the dropdown menu to display outside the parent container despite the overflow rule on the parent, but I haven't figured it out yet. Thanks for any suggestions!
  • Picture of Florian Leupold
    Tue, Jul 28, 2020, 2:18 AM
    Hi Jean-Roch

    Thank you so much for making and sharing this plugin! I am glad I found it, it just so very useful...

    I love the plugin's elegance and simplicity. However, two things you might consider adding are:
    • the possibility to hide the activity summaries (I've done that on my instance using CSS),
    • the option to only open one section, i.e. an open section closes when another is opened (c.f. plugin collapsed topics, I don't now how hard implementation would be).

    Thanks again,
  • Picture of Raphael Weiss
    Wed, Sep 16, 2020, 4:08 AM
    Hi, thanks for this great plugin. Unfortunately the progress bar isn't working correctly. For example: You have 3 tasks, you mark one of them, the progress bar is already full or is not moving at all. I work with moodle 3.8. Here an example:
  • Picture of Jean-Roch Meurisse
    Wed, Sep 16, 2020, 8:08 PM
    Hi Raphael,
    Unfortunately, I cannot reproduce your problem, neither on 3.7 nor 3.9. I do not have access to a 3.8 for the moment. Could you check javascript console for any errors and if any report that in the bug tracker?
1 2
Please login to post comments