
Course formats: Collapsed Topics
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.
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.
# 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/ .......
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/ .......
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/ .......
https://www.dropbox.com/s/qzp7mjynxtbzvel/Screen%20Shot%202020-09-11%20at%209.11.48%20AM.png?dl=0
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
Collapse Topics is showing Side Block by default
https://moodle.org/mod/forum/discuss.php?d=415264
I've replied on the course and course formats forum to your post.
G