General plugins (Local): Re-sort Courses

Maintained by Picture of Ulm University Ulm University, Picture of Alexander Bias Alexander Bias
Moodle plugin which sorts a category page automatically as soon as a course has been added or modified
173 sites
10 fans

The local_resort_courses plugin acts completely behind the scenes. After installing local_resort_courses, as soon as a course has been added or modified in a category, local_resort_courses verifies that the containing category page is automatically sorted just as it would be sorted when you click the "Re-sort courses by name" button on the category page.

By default, local_resort_courses sorts categories by course full name in ascending order, just as the "Re-sort courses by name" button on the category page does. You can set sort order to another value, including course short name (ascending / descending), course ID (ascending / descending) and course start date (ascending / descending).

By default, local_resort_courses handles re-sort jobs for every category. You can define categories which mustn't be sorted automatically and whose sort order can still be controlled manually. Additionally, you can define that local_resort_courses should skip the selected categories and all of their descendant categories when handling re-sort jobs.

See README file for details.


Screenshot #0


Picture of Ulm University
Ulm University (Lead maintainer)
Picture of Alexander Bias
Alexander Bias: Developer
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Anthony Borrow
    Sun, 29 Jul 2012, 12:41 PM
    The plugin does not work unless two variables are declared in config.php and these were not mentioned in the install section of the README document but were mentioned later. Technically, requiring the modification of the config.php makes this a patch which we are trying to avoid. I have encouraged Alexander to go ahead and add a settings page for those variable and to make sure to initialize them to avoid them being undefined. I've asked him to create the settings page prior to approval which will ensure that this plugin is in fact a plugin rather than a patch. Peace - Anthony
  • Anthony Borrow
    Sun, 29 Jul 2012, 12:42 PM
    In addition, a documentation url and a screenshot (perhaps a before and after) would be helpful.
  • Picture of Alexander Bias
    Tue, 22 Jan 2013, 4:30 PM
    Anthony, I've migrated the plugin settings from config.php to a settings page within Moodle and have more documentation and a screenshot.
  • MD shot of me from his iphone4
    Wed, 20 Mar 2013, 11:59 AM
    Thanks Alexander. This installed fine for me and i'm glad that no patching is needed now smile

    I'm a little confused with the use of the term 'resort' here, you many want to consider a title change to "Resort Courses"

    Also do consider adding a readme.txt file (which can be a copy of
  • Picture of Alexander Bias
    Wed, 20 Mar 2013, 7:30 PM
    Dear Aparup,

    regarding the plugin name: I think you did the same typo in your comment like me when I named the plugin. Did you mean to propose naming the plugin "Re-Sort Courses" instead of "Resort courses"? I think that should be possible.

    regarding the readme.txt: There is an option "Rename readme.* to readme.txt" when uploading a new plugin zip package. I always check this option, but never gets renamed. I already told Anthony about this problem. Perhaps you could have a look at this or create a tracker issue? As soon as this upload option works, there will be a readme.txt smile

Please login to post comments