How to show few courses in my courses drop down

How to show few courses in my courses drop down

by Vũ Tuấn Anh Lê -
Number of replies: 1

Hello everyone, my moodle version is 3.2.2, when I add "my courses" to navigation bar and click to show drop down list enrolled courses. But if I have some course, everything ok. But a lot of courses is different, my courses show all of it, too long dropdown list. So I need you help to write some php code or custom somthing to set limit course amout will show, example show 4 courses and have button at bottom drop down list to direct show all enrolled course page. Thank you so much, sorry my bad english.

Average of ratings: -
In reply to Vũ Tuấn Anh Lê

Re: How to show few courses in my courses drop down

by Chris Kenniburg -
Picture of Particularly helpful Moodlers Picture of Plugin developers

The Essential theme has a feature where instead of "My Courses" it is a drop down the the Latest Courses which is the last 5 or so courses you visited.  You might want to look over that code for examples.

To be honest, this is probably the most logical use for the course drop down.  

With M3.3 and the updates to My Dashboard I think we are going to want students to utilize the Dashboard more than we do now.  The dashboard would give them a listing of all their courses while the Latest Courses would be for quick links to the courses being used most often.