About the My Courses widget

In the My Courses widget, courses have associated images and learners can access their favorite courses by pinning them to the top of their course list. In the mobile view, widgets stack on top of each other, and the My Courses widget offers many new options to instructors.

D2L recommends that you turn on the d2l.Tools.MyCoursesWidget.UpdatedSortLogic configuration variable. When you have this variable turned on, instructors and learners see courses by enrollment date, prioritizing current enrollments. Administrators and power users see courses by the last accessed date. If there are less than 50 total enrollments, they are sorted as follows:

  • The My Courses widget shows manually pinned courses followed by current enrollments, then future enrollments (if they are available or visible to the user) for a total of 12 enrollments. Note that more than 12 courses might appear if they are all manually pinned.
  • The Course Selector drop-down menu shows manually pinned courses, followed by current enrollments, then future enrollments (if they are available and visible to the user), and finally, past enrollments (if they are visible to the user).
  • The View All Courses navigation drills down into the courses by showing manually pinned courses, followed by current enrollments, then future enrollments (if available and visible to the user), then past enrollments (if available or visible to the user) as the default sort. If the user changes the sort order, the filter does not separate pinned courses from other courses based on sort order, filters, and search terms.

If there are more than 50 total enrollments, they are sorted as follows:

  • The My Courses widget shows manually pinned courses followed by up to 12 last-accessed courses. Note that more than 12 courses might appear in the widget if they are all manually pinned.
  • The Course Selector drop-down menu shows manually pinned courses, followed by up to 12 last-accessed courses, followed by all remaining courses available to the user.
  • The View all Courses area shows manually pinned courses followed by up to 12 last-accessed courses, followed by all remaining courses available or visible to the user as the sort order. If the user changes the sort order, the filter does not separate pinned courses from other courses based on the sort order, filters, and search terms.

Additionally, when you turn on the d2l.Tools.MyCoursesWidget.UpdatedSortLogic configuration variable, you can use the Customize this Widget option to configure the My Courses widget to display tabs that organize courses by Semester Name, Department, or Role for the Org. You can choose to sort the Semester Name and Department tabs alphabetically or reverse-alphabetically. Users can easily view all their courses by clicking through each tab.

The following alerts are available in the My Courses Widget:

  • startedInactiveAlert: You have courses that have started but are set as inactive. Users may not be able to access these courses. - This alert only appears to administrators and instructors who have access to inactive courses.
  • noCoursesMessage: You don't have any courses to display. - This alert only appears to new instructors and new learners who have not yet been enrolled in any course.