Moodle plugins directory: Collapsed Topics | Moodle.org
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.
thanks
You can disable toggle persistence completely under: Home -> Site administration -> Plugins -> Course formats -> Collapsed Topics as an administrator. This means that toggle state will be forgotten even on page refresh.
Cheers,
Gareth
Is there a way to customize each toggle, for example, with a background image?
Thanks 4 ur answer.
Cheers,
Sorry, no there is not. You can only change the toggle colour on a per course basis.
Cheers,
Gareth
I,m really into your format.
Is there a way to make toggles open to collapse when you open a new one?
Cheers,
Chris,
Thank you. Sorry, there is not a way without altering the way the JavaScript code works. It is conceptually possible though.
Cheers,
Gareth
The Frankenstyle name is 'format_topcoll' as shown underneath the title on this page.
Cheers,
Gareth
Ok, I have not used that functionality before. So try 'topcoll' please.
Cheers,
Gareth
Thanks.
Chriss
This is the code that does the toggling: https://github.com/gjb2048/moodle-format_topcoll/blob/MOODLE_27/module.js#L149-L165 - you would need to modify the code such that it remembered what was the last toggle to be opened and then close it if it was different from the toggle clicked on.
Cheers,
Gareth
Using Firebug in Firefox, I traced it to this line:
body.format-topcoll.editing .section .activity .actions
{
position: relative;
}
When I use Firebug to disable that line, the edit menu moves back to the right, where it should be and I don't immediately see any negative effects of doing that.