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: Difference between revisions

From MoodleDocs
No edit summary
Line 67: Line 67:
===Summary===
===Summary===


If number of courses in the system(!) is over 200, list of categories will not include links to courses
$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):
 
$CFG->maxnumcoursesincombo (default 500) is the maximum number of courses to print in combo form, otherwise the link is shown:


[[File:combo6.png|frame|center]]
[[File:combo6.png|frame|center]]

Revision as of 07:16, 17 December 2012

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):

combo6.png