Select Moodle version:

General plugins (Local): Re-sort Courses

local_resort_courses
Moodle plugin which sorts a category page automatically as soon as a course has been added or modified
Maintained by: Picture of Alexander Bias Alexander Bias

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.

Screenshots

screenshot

Contributors

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

Comments RSS

Show comments
  • Capt. Moodle
    Sun, Jul 29, 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
  • Capt. Moodle
    Sun, Jul 29, 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, Jan 22, 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, Mar 20, 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 readme.md)
  • Picture of Alexander Bias
    Wed, Mar 20, 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 readme.md 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

    Thanks,
    Alex
Please login to post comments