Course formats: Collapsed Topics

format_topcoll
Maintained by Gareth J BarnardGareth J Barnard
An interchangeable topic or week based format that solves the issue of the 'Scroll of Death' when a course has many topics.
5687 sites
3k downloads
122 fans
Current versions available: 21

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 J Barnard (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Comments

  • Zonggen Zeng, Ningbo Polytechnic, Ningbo City, Zhejiang Province, China
    Thu, Jul 9, 2020, 5:15 AM
    Hi Gareth, I'm so sorry-- I setup format_topcoll_moodle38_2019111702.zip on moodle 3.9+ (Build: 20200704), I move a topic to other position, the browser cannot refresh, a circle movie go round forever ,and I must type F5 key, the move topic operation complete sussessfully. can you help me? can you fix it ? my site is https://mood.nbpt.edu.cn/ , thank you very much.
  • Gareth J Barnard
    Thu, Jul 9, 2020, 5:50 AM
    Hi Zonggen,

    There are many changes to course formats from M3.8 to M3.9 that I'm still discovering (currently with the Grid format) and thus there will be a version of Collapsed Topics for M3.9 when I can produce one. I can't help you fix it as I'm still working through the problems to determine the solutions.

    G
  • Zonggen Zeng, Ningbo Polytechnic, Ningbo City, Zhejiang Province, China
    Tue, Jul 21, 2020, 8:41 AM
    Hi Gareth, I'm very glad, very excited, just now I find you have published a version for moodle 3.9, and I setup it , Topcallapsed work wonderfully, you are a kind man, you are moodler's GOD! Thank you very much again............. My moodle site is https://mood.nbpt.edu.cn/ .......
  • Zonggen Zeng, Ningbo Polytechnic, Ningbo City, Zhejiang Province, China
    Tue, Jul 21, 2020, 8:43 AM
    Hi Gareth, I think topcallapsed topics is the best course format in the moodle world, thank you to do so much for us ................ My moodle site is https://mood.nbpt.edu.cn/ .......
  • Zonggen Zeng, Ningbo Polytechnic, Ningbo City, Zhejiang Province, China
    Tue, Jul 21, 2020, 8:48 AM
    Hi Gareth, I'm so sorry, I find your topclapsed topics have another problem in it . there are no space between topics, I have changed it use these code, set 10 pixes between two topics:

    # vim ./html/course/format/topcoll/styles.css
    type keyboard【:62】line,
    make this:
    .course-content ul.ctopics.bsnewgrid li.section.main,
    .course-content ul.ctopics.bsnewgrid li.tcsection {
    margin: 0;
    }
    to:
    .course-content ul.ctopics.bsnewgrid li.section.main,
    .course-content ul.ctopics.bsnewgrid li.tcsection {
    margin: 10;
    }

    now ,it's ok, there is 10 pixes space between two topics , it's more beautiful , more fit !!!

    ............. My moodle site is https://mood.nbpt.edu.cn/ .......
  • Gareth J Barnard
    Wed, Jul 22, 2020, 1:19 AM
    Thanks for the praise and info, V3.9.0.1 has a bug, please update to version 3.9.0.2 when I publish it shortly.
  • Zonggen Zeng, Ningbo Polytechnic, Ningbo City, Zhejiang Province, China
    Fri, Jul 24, 2020, 7:16 AM
    Hi Gareth, I'm so sorry, I find your topclapsed topics (version: Release 3.9.0.2 File: format_topcoll_moodle39_2020071801.zip) have another problem in it .

    Error in opening a course with TOPCALL course format in mobile browser:
    Exception - Argument 3 passed to html_writer::tag() must be of the type array or null, string given, called in [dirroot]/course/format/topcoll/renderer.php on line 482

    # vim ./html/course/format/topcoll/renderer.php
    Type [: 482] in VIM of CentOS and press enter,
    Modify this:
    if ((($this->mobiletheme === false) && ($this->tablettheme === false)) || ($this->userisediting)) {
    $o .= $this->output->heading($title, 3, 'sectionname', "sectionid-{$section->id}-title");
    } else {
    $o .= html_writer::tag('h3', $title, "sectionid-{$section->id}-title"); // Moodle H3's look bad on mobile / tablet with CT so use plain.
    }
    to:
    if ((($this->mobiletheme === false) && ($this->tablettheme === false)) || ($this->userisediting)) {
    $o .= $this->output->heading($title, 3, 'sectionname', "sectionid-{$section->id}-title");
    } else {
    //$o .= html_writer::tag('h3', $title, "sectionid-{$section->id}-title"); // Moodle H3's look bad on mobile / tablet with CT so use plain.
    $o .= html_writer::tag('h3', $title, null); // Moodle H3's look bad on mobile / tablet with CT so use plain.
    }
    In this way, when the TOPCALL course format is opened in the mobile browser, the display is normal.

    Would you please revise it?

    I conclude that you are the Great God of the moodler's world, the Real God of the world ! Thank you very much!

    ............. My moodle site is https://mood.nbpt.edu.cn/ .......
  • Zonggen Zeng, Ningbo Polytechnic, Ningbo City, Zhejiang Province, China
    Sat, Jul 25, 2020, 8:44 AM
    Hi Gareth:

    My God, I am sure you are the true God of Moodle world! I just updated your newly released version 3.9.0.3. It works! I'm very satisfied, and the majority of moodlers are also very satisfied. Thank you very much. God double bless you, good luck!

    ............. My moodle site is https://mood.nbpt.edu.cn/ .......
  • Picture of Nathan Lind
    Fri, Sep 11, 2020, 10:13 PM
    Hi Gareth, we so very much appreciate your Collapsed Topics plugin! We've used it for years at our university! We love the addition of the due date labels/tags that appear for assignments. Very nice. Do you supposed you could share the code that makes those appear so for our folks using the Grid Format or another format would also see those labels/tags? Thanks either way.
    https://www.dropbox.com/s/qzp7mjynxtbzvel/Screen%20Shot%202020-09-11%20at%209.11.48%20AM.png?dl=0
  • Gareth J Barnard
    Fri, Sep 11, 2020, 11:55 PM
    Thanks Nathan. There's actually some oddities with that code I've just patched in Adaptable and will update CT soon. The code is GPLv3 so you can copy it if you wish. If you'd like me to port it to another format such as the Grid then I would if my time was financially compensated.
  • Picture of Raphael Weiss
    Tue, Sep 15, 2020, 9:27 PM
    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: https://gibz-my.sharepoint.com/:f:/g/personal/rweiss_gibz_ch/EpgxHB-N151Iox6_BFIQx7EBAeUWLYbrOxSC-gyNKqtcow?e=DZhr2M
  • Gareth J Barnard
    Wed, Sep 16, 2020, 12:07 AM
    Dear Raphael,

    That's not Collapsed Topics course format, so nothing to do with me. In any event, the progress bar progress is not controlled by the course format. Please use the 'Course and course formats' forum.

    G
  • Zonggen Zeng, Ningbo Polytechnic, Ningbo City, Zhejiang Province, China
    Wed, Sep 23, 2020, 4:34 AM
    Hi Gareth, I'm so sad-- my moodle web site is moodle 3.9.2, but your format_topcoll_moodle39_2020071804.zip is not work when I set "columns" to "two" or "three" or "four"! please save me...
  • Gareth J Barnard
    Wed, Sep 23, 2020, 4:38 AM
    Works for me, please post details on the courses and course formats forum, I can't help as I don't know what's wrong.
Please login to post comments