I found the courses sorted oddly on My Moodle pages regardless of how they were listed on the front page. I found my solution here: http://moodle.coleggwent.ac.uk/mod/resource/view.php?id=2068 , and edited my/index.php
According to this, courses sort by enrollment date. We wanted them displayed are we had them on the front page by category.
We also changed the way courses were listed in my course block. I'm not positive, but I think I found that solution here MDL-13112
Wherever I found it, in blocks/course_list/block_course_list.php I commented out the line
if ($courses = get_my_courses($USER->id, 'visible DESC, fullname ASC')) {
(I hate deleting core code)
and adding the line
if ($courses = get_my_courses($USER->id, 'sortorder ASC, visible DESC')) {
Hope that helps!
Hi Sharon,
Many thanks for your input here, it really helped me : ) I messed around for several hours looking for this solution!
I am using Moodle 1.94
I have specific aims for my course which require that I do not want courses to display alphabetically. I wanted them to sort based on the order I set in the admin settings. Your line above helped me do that. Seemed to only need to be changed in one place
in this file:
blocks/course_list/block_course_list.php
I do not understand really why I should be hacking PHP in order to make such a change. I will find somewhere in the Tracker to say this : )
Many thanks
~thomas
Many thanks for your input here, it really helped me : ) I messed around for several hours looking for this solution!
I am using Moodle 1.94
I have specific aims for my course which require that I do not want courses to display alphabetically. I wanted them to sort based on the order I set in the admin settings. Your line above helped me do that. Seemed to only need to be changed in one place
in this file:
blocks/course_list/block_course_list.php
I do not understand really why I should be hacking PHP in order to make such a change. I will find somewhere in the Tracker to say this : )
Many thanks
~thomas