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.
5645 sites
3k downloads
121 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 '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

Show comments
  • Picture of Liko Purba
    Wed, Apr 22, 2020, 7:27 PM
    I install it on Moodle 3.8.2 and my moodle get "error/generalexceptionmessage". I can't access my moodle. I have to replace moodle's folder with fresh moodle download and replace the config file with my old config. The moodle then detect the faulty plugin (with it's database) and remove them.
  • Gareth J Barnard
    Thu, Apr 30, 2020, 6:32 PM
    Dear Liko,

    Where there any errors in the PHP error log?

    Please post details on https://moodle.org/mod/forum/view.php?id=47.

    G
  • Picture of Liko Purba
    Tue, May 5, 2020, 7:39 PM
    Dear Gareth

    Post there already since the error occurred but no one respond
    https://moodle.org/mod/forum/discuss.php?d=401417
  • Gareth J Barnard
    Tue, May 5, 2020, 7:44 PM
    See my reply Liko and you post might have moved to https://moodle.org/mod/forum/view.php?id=47
  • Picture of Shannon Freeman
    Sat, Jun 20, 2020, 3:13 AM
    Hi Gareth, I'm so sorry--I missed your response to my question FOREVER ago. I asked if it was possible to make the links on the left column open up the sections on the right. You replied by asking me if the linkcoursesections admin setting is turned on > YES, it is turned on.

    Right now, if users click on the topic name in the left-hand navigation box, the link DOES move that topic to the top of the page but doesn't open it (so for most users, it's more confusing than helpful). In an ideal world, I'd love for those links to be .../course/view.php?id=253&section=6 (which opens the topic in its own window) instead of .../course/view.php?id=253#section-6 (which just scrolls to the top of that topic on the full page but doesn't open it if it's closed).
  • Gareth J Barnard
    Tue, Jun 30, 2020, 1:18 AM
    Hi Shannon,

    Given "In an ideal world, I'd love for those links to be .../course/view.php?id=253&section=6 (which opens the topic in its own window) instead of .../course/view.php?id=253#section-6 (which just scrolls to the top of that topic on the full page but doesn't open it if it's closed)." this would be even more confusing given past comments. I'm inclined to leave them as anchors and possibly add 'open toggle' when clicked JS.

    G
  • 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/ .......
Please login to post comments