Collapsed Topics

Course formats ::: format_topcoll
Maintained by Gareth J BarnardGareth Barnard
An interchangeable topic or week based format that solves the issue of the 'Scroll of Death' when a course has many topics.
Latest release:
5462 sites
1k downloads
170 fans
Current versions available: 32

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 'Readme.md' 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+.

Support:

The format comes with NO support.  Please see the 'Support' section in 'Readme.md' file that comes with the format.  This is because the format is complex and I regret that I don't have the time / resources to freely assist with questions pertaining to specific enhancements / changes / knowledge improvement.

I will investigate genuine bugs and issue fixes in a timescale set by myself.  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.md' file and upload and describe in detail the issue you are having on the 'Course formats' forum.

Book:

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:




Privacy API support starts with V3.3.1.2 for M3.3 and V3.4.0.2 for M3.4 where the API has been implemented in the minor release of Moodle.

Screenshots

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

Contributors

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

Comments

Show comments
  • Gareth J Barnard
    Thu, 15 Feb 2024, 12:50 AM
    Dear Terry,

    They are set to white because the toggle section background default colour is set to blue, being #1177d1.

    Gareth
  • Terry Aulenbach
    Tue, 27 Feb 2024, 4:55 AM
    Thanks, Gareth. For some reason our installation of Collapsed Topics had all colours set to 0 instead of the defaults. It's all good now.
  • Ezzeddin Hamed
    Sat, 4 May 2024, 4:32 PM
    Hi Gareth,

    This is a wonderful plugin with too many good settings. I have used it for many years; in Moodle 3.11 it was fine with no issues; now I installed in Moodle 4.1 & Moodle 4.3, each with it's own version of the plugin, but in both columns are only show in 2 columns even if I change the setting to anything else, tried with resetting everything, but did not work at all.

    Is these anything I can do to fix it?

    On the other hand, how possible is to make a section has the column setting, so that one section for example may have 2 columns and another section may have 1 column and so on.

    Also when referring to another course format under structure, could it be possible to an addition that allows using another course format other than the default? As when installing another course format.

    Thanks,
  • Gareth J Barnard
    Sat, 11 May 2024, 8:56 PM
    Dear Ezzeddin,

    If its restricted to two columns then likely you're viewing the course on a mobile / tablet device. The format detects and enforces a max of two columns.

    Section column setting = difficult.

    Gareth
  • Przemek Kaszubski
    Tue, 1 July 2025, 3:51 PM
    I think the latest update to Collapsed Topics 405.1.1 Moodle 4.5 Released: Monday, 30 June 2025, 1:13 PM is causing the course index in courses NOT using Collapsed topics to fail to display the Course index at all. I'm seeing things like this in the Firefox inspector:

    Object { message: "Exception - Call to undefined method format_topics::get_shown_sections()", errorcode: "generalexceptionmessage", backtrace: "* line 94 of /course/format/topcoll/classes/external/get_state.php: Error thrown\n* line 2159 of /course/format/topcoll/lib.php: call to format_topcoll\\external\\get_state::execute()\n* line 243 of /lib/external/classes/external_api.php: call to format_topcoll_override_webservice_execution()\n* line 83 of /lib/ajax/service.php: call to core_external\\external_api::call_external_function()\n", link: "https://pktest.amu.edu.pl/moodle/course/view.php?id=5", moreinfourl: "https://docs.moodle.org/405/en/error/moodle/generalexceptionmessage", debuginfo: "\nError code: generalexceptionmessage" }
    ?
    backtrace: "* line 94 of /course/format/topcoll/classes/external/get_state.php: Error thrown\n* line 2159 of /course/format/topcoll/lib.php: call to format_topcoll\\external\\get_state::execute()\n* line 243 of /lib/external/classes/external_api.php: call to format_topcoll_override_webservice_execution()\n* line 83 of /lib/ajax/service.php: call to core_external\\external_api::call_external_function()\n"
    ?
    debuginfo: "\nError code: generalexceptionmessage"
    ?
    errorcode: "generalexceptionmessage"
    ?
    link: "https://pktest.amu.edu.pl/moodle/course/view.php?id=5"
    ?
    message: "Exception - Call to undefined method format_topics::get_shown_sections()"
    ?
    moreinfourl: "https://docs.moodle.org/405/en/error/moodle/generalexceptionmessage"
    ?
  • Ben Kammerling
    Tue, 1 July 2025, 7:17 PM
    We are seeing the same issue our side with 'line 94 of /course/format/topcoll/classes/external/get_state.php' error. It breaks the course index on all our courses, regardless of which course format it's using, even the standard Moodle topics / custom sections format.

    It would be great to get a fix out for this asap. Thanks.
  • Gareth J Barnard
    Tue, 1 July 2025, 9:01 PM
    Dear Prezemek and Ben,

    Thanks for the reports. I've hidden the versions for now and intend to put out a fix when I can.

    Kind regards,

    Gareth
  • Przemek Kaszubski
    Tue, 1 July 2025, 10:04 PM
    Thanks, Gareth. Disabling the format did not help, unfortunately, only total removal. Good decision not to show that version on https://moodle.org/plugins/format_topcoll/versions .
  • Gareth J Barnard
    Wed, 2 July 2025, 1:30 AM
    Dear Prezmek,

    You can always revert back to the previous version by clearing the 'allversionshash' - though this comes with risk, so really a test server thing only.

    G
  • Przemek Kaszubski
    Wed, 2 July 2025, 7:35 PM
    We're not doing that, Gareth, but thanks for this tip - good to know smile
  • Raymond Barrett
    Thu, 2 Apr 2026, 9:55 PM
    Any idea when there will be an update for Moodle 5.1?
  • Justin Hunt
    Mon, 29 June 2026, 2:45 PM
    Currently the maturity level of the latest releases for versions 5.1 and 5.2 (and maybe earlier) are set to MATURITY_RC (release candidate). This means that most Moodle sites upgrading to 5.1 or 5.2 will not see an available update option for format_topcoll. That is because the default updateminmaturity setting in Moodle is for MATURITY_STABLE. So though there is an update for 5.2 (and 5.1) listed here .. it did not show and my topcoll courses broke in 5.2. The maturity set in the plugin's version.php is fine. But the maturity set in the details here on moodle.org/plugins should be update to STABLE too.

    For anyone stuck, you can either download the zip file OR visit your moodle's Site administration -> Server -> Update notifications page and drop the value to "Release Candidate".
  • Gareth J Barnard
    Mon, 29 June 2026, 7:35 PM
    Dear Justin,

    I disagree. The maturity in the plugins database and the 'version.php' file needs to match otherwise there is a value discrepancy for the same thing. The value of 'Release Candidate' is correct in both respects and indicates the state of the code as published. If I were to state it was stable and not a release candidate then that would be misleading for those wanting only 'stable' plugins on their system, a lie.

    The 'Readme' file has stated since the 10th of August 2012 "Ensure you have the version of Moodle as stated above in 'Required version of Moodle'. This is essential as the format relies on underlying core code that is out of my control." for both installing and upgrading. Thus to be considered as a part of your upgrade planning and procedure.

    Kind regards,

    Gareth
  • Justin Hunt
    Mon, 29 June 2026, 10:29 PM
    Ok, I see now the version.php is also "release candidate" - so that is consistent. I was not suggesting they should differ. But perhaps you could say somewhere its "release candidate" and not stable. Because its actually not visible anywhere on the plugins directory. You only see that after you go to update (and most won't get to that point if relying on Moodle to detect available updates). It took me a while to work out why it was listed on the plugins directory but not showing up as an available update. Perhaps the marketplace will display it differently anyway ...
  • Gareth J Barnard
    Mon, 29 June 2026, 11:25 PM
    Dear Justin,

    The UI of the plugin's database is out of my control. However, clicking on a release tells you information about it, including the maturity towards the bottom, such as https://moodle.org/plugins/format_topcoll/502.0.1/41282 under 'Version information'. I almost always make a release post on the Courses and Course formats forum -> https://moodle.org/mod/forum/view.php?id=47 - in there I stipulate the maturity and have been doing so for quite some time. For example: https://moodle.org/mod/forum/discuss.php?d=473955.

    Kind regards,

    Gareth
Please login to post comments