Note:

If you want to create a new page for developers, you should create it on the Moodle Developer Resource site.

Courses and Categories Lists Overview in 2.4

From MoodleDocs

In 2.4 we have several different methods displaying list of categories/courses:

Front page

List of courses on front page

Setting:

01.png

Admin can see:

03.png

Student can see:

02.png

Not logged in user can see:

04.png

Note: student can see "Weekly course" (located in subcat1), but admin and not logged in can not (bug?)

Note: student can see remote courses in different format than local courses

Note: if isset($CFG->disablemycourses) student will see the same as guest

if the number of courses > FRONTPAGECOURSELIMIT (constant = 200), courses will not be displayed, just the course search form

List of categories on front page

Setting:

05.png

Admin can see:

06.png

Student can see:

07.png

Not logged in user can see the same as student because in my example student is enrolled in all courses

Combo list on front page

Setting:

combo1.png

Admin can see:

combo2.png

Student can see:

combo3.png

Not logged in user can see:

combo4.png

Note: looks like the most attractive format, BUT student can not see remote courses. And there is no functionality to show only remote courses

Summary

$CFG->maxnumcoursesincombo (default 500) is the maximum number of courses to print in combo form, otherwise the link is shown (for admin, students and guests, regardless on number of available/visible courses). Also note that there are 4 courses in the system:

combo6.png

My moodle

If empty($CFG->disablemycourses) students will see "My courses" link instead of "Courses". But only in navigation!

my.png

All courses

Link /course/index.php appears quite often. If number of courses is less than 200 (in some places in code it is replaced with constant FRONTPAGECOURSELIMIT), it will show the list of categories with courses (see examples below). If number of ALL courses is more than 200, then regardless of number of courses visible to the user, there will be just a category tree (the same as in "list of categories on the front page").

Admin

courses1.png

Student

courses2.png

Guest

courses3.png

Admin in edit mode

courses1e.png

Category

If user follows link /course/category.php under any category name

Admin

category1.png

Student

category2.png

Guest

category3.png

The same page when $CFG->coursesperpage is set to 2 (i.e. when courses are split into pages):

paginated.png

Admin in edit mode inside category

courses1ec.png

Tags

Also there is a /tag/index.php page

tags.png