General developer forum

Adding new link under my courses

Picture of Mohammad Hussein
Adding new link under my courses


I'm new to Moodle but good in php, I just need your help in adding a new link under  "Current Courses" or "My Courses"   (left navigation) .

This link should be available to students only and mapped to a page /moodle/custom/make-up.php this page will read the non graded assignments and allow the student to apply for make-up.

We are using Moodle 3.2


Average of ratings: -
Picture of Alexander Bias
Re: Adding new link under my courses
Core developersParticularly helpful MoodlersPlugin developers


you might want to have a look at where we add a node at exactly this location.

Regarding "This link should be available to students", this may be more difficult than you think because the "MyCourses" list is built in system context, but the fact that a user is a student is located in the course contexts. If you can identify any criteria in system context to identify students, you can check this before adding the node to the "MyCourses" list.


Average of ratings: -