Moodle plugins directory: Filtered course list | Moodle.org
Filtered course list
The Filtered Course List block displays a configurable list of courses. It is intended as a replacement for the My Courses block, although both may be used. It is maintained by the Collaborative Liberal Arts Moodle Project (CLAMP).
An administrator can apply various filters by which to organize a user's course listing in the block. Courses can be sorted by category, shortname matches or completion status. If all of the courses in a given semester have a shortname ending in a semester code, for instance, then the administrator can designate those courses to appear under "Current courses," "Future courses" or any other heading. Regex matching is supported.
Administrators can designate multiple collapsible headings and choose which of those headings, if any, should be expanded by default.
Other options include the ability to hide the block from guests or anonymous visitors, to choose whether an admin sees all courses or her own, and to hide or reveal a link to a more comprehensive course search.
I've just download your plugin and I am liking it a lot so far.
Question - Is it possible, rather than via the "All Courses" link, to have all Course Categories displayed in this block for every user regardless if they are enrolled or not? I ask because I have a few informative courses that are open to everyone, with no kind of enrollment necessary.
You could make an "All my courses" rubric by using a regex filter like this: `regex | collapsed | All my courses | .` The dot at the end matches anything, but that won't include courses with guest access, so I think it's not what you're looking for, either. In general the filters start from a list of courses that the user is enrolled in, so it would take a different filter to show courses with guest access. I think it could be done, and I've added it as a possibility to the roadmap, but I'm not sure when I'll be able to have a closer look. Are you by chance a developer?
First of all, thanks for this amazing plug. Right now i'm trying to get a very simple filter to show all the active courses to the user even if he's not enrolled in them. My course structure is as follows (all courses have manual enrolment)
Category 1
- course 1 - shortname 1xx
- course 2
etc
Category 2
|
- course 3 - shortname 2xx
- course 4
etc
However, i haven't been able to produce the desired results, using the various methods you mentioned in your documentation:
e.g.
regex | expanded | 100-level courses | 1\d\d (as my shortname starts with 1xx
category | collapsed | 0 (= top level) | 0 (= all decendants)
regex | collapsed | All my courses | .
i tried
category | collapsed | 2 (to show only category ID 2) | 0 (= all decendants)
and finally:
enrolment | collapsed | guest, self | Available courses
however i changed "guest, self" to "manual" and it returned me a "Can not find data record in database table course." (i can't have them as self-register)
and always shows me only the courses that the user is registered in, and if a user has no courses enrolled, then a simple list of categories.
I have moodle 3.5.4+ and FCLv3.4.2
i replaced line 133 in block_filtered_course_list.php from
$this->mycourses = enrol_get_my_courses(null, "$sortstring");
to:
$this->mycourses = coursecat::get(0)->get_courses(array('recursive' => true));
which solves the problem but doesn't allow me to keep updating your oh so good plug-in. Is there any chance this can be added as a preference in future versions?