How can I show courses by category on My Moodle page?

How can I show courses by category on My Moodle page?

by Deleted user -
Number of replies: 2

Dear All,

This is essentially the same question as in https://moodle.org/mod/forum/discuss.php?d=121758 but for Moodle 2.4. This was a hack applicable to version 1.9 and involves a work-around using the get_my_courses function available in 1.9.

My question is whether the idea could still be used with the enrol_get_my_courses function that replaced get_my-courses in 2.4 and how can one check if a course has one sub-category, two and so one.

Also, what would be the best approach - if I create PHP code that fetches this information where should the code go?

Regards,

George

Average of ratings: -
In reply to Deleted user

Re: How can I show courses by category on My Moodle page?

by Deleted user -

The picture attached to the message shows what I am trying to achieve (this is from a Moodle 1.9 installation so the functions have changed; i think get_my-courses is now enrol_get_my_courses) but I believe should be feasible for 2.x branches as well. If anyone could share some suggestions as to which files need experimenting with, it would be greatly appreciated.

Regards,

George

Attachment moodle1.gif
In reply to Deleted user

Re: How can I show courses by category on My Moodle page?

by Deleted user -

Any opinions? Can somebody point me at least to the files need changing?

Regards,

George