Filtered course list

Blocks ::: block_filtered_course_list
Maintained by Charles Fulton, Kevin Wiliarty, Andrew Zito
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).
Latest release:
716 sites
212 downloads
54 fans
Current versions available: 11

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.

Screenshots

Screenshot #0

Contributors

Charles Fulton (Lead maintainer)
Kevin Wiliarty: Maintainer
Andrew Zito: Maintainer
Please login to view contributors details and/or to contact them

Comments RSS

Comments

  • Kevin Wiliarty
    Mon, 13 Aug 2018, 1:23 AM
    I've just released v3.3.7 which includes CSS classes indicating course completion status.
  • Brian Chandler
    Tue, 14 Aug 2018, 1:03 AM
    My man!
  • Patrick Viney au MoodleMoot de Nîmes
    Mon, 15 Oct 2018, 5:18 PM
    Hi, I've found a small bug with course names containing an ampersand (&). The filtered list seems to display it with the html code "& amp;" instead. Can something be done about this ? Thanks again for your great work !
  • Kevin Wiliarty
    Mon, 15 Oct 2018, 11:32 PM
    Thanks for the report, Patrick. So far I'm not having any luck reproducing the problem. I've added a course with an ampersand in the title, but it displays correctly for me in the block. Can you tell me which version of the block you are using? Which version of Moodle? And how the title is being created? For example, manually? By some automated process?
  • Patrick Viney au MoodleMoot de Nîmes
    Tue, 16 Oct 2018, 6:08 PM
    Thank you for your quick reply. Actually, it works fine on my Moodle 3.5 with the latest version of the plugin. The ampersand problem was on my 3.3 only with plugin v3.1.0.
  • Kevin Wiliarty
    Tue, 16 Oct 2018, 10:13 PM
    I'm so glad to hear it. There had previously been an issue with ampersands, as you saw, but it should be resolved in more recent versions.
  • MAG II
    Fri, 26 Oct 2018, 1:54 AM
    Hello -

    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.
  • Kevin Wiliarty
    Fri, 26 Oct 2018, 9:08 PM
    Unfortunately that is not one of the current options, though I can appreciate why it would be nice. Are you achieving this by adding guest access to the courses in question? I could imagine adding something like that to the roadmap.
  • MAG II
    Fri, 26 Oct 2018, 9:44 PM
    Yes there are a handful of courses that do not require enrollments to access. So courses with guest access, yes.
  • MAG II
    Fri, 26 Oct 2018, 9:48 PM
    Apologies for flooding the thread, but to add to what I was saying about being able to access all courses from this block - I was hoping to have a courses link for all courses in this block, kind of like what is available with the standard Navigation block.
  • Kevin Wiliarty
    Sat, 27 Oct 2018, 2:15 AM
    Don't worry about flooding the thread; I'm grateful for the questions and ideas.

    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?
  • Kevin Wiliarty
    Sun, 11 Nov 2018, 2:31 AM
    @MAG II: I've just released version 3.4.1 (for Moodle 3.3, 3.4, 3.5) that includes an "enrolment" filter. You can use it to show courses with guest enrolment, self enrolment or both. Usage details are here: https://github.com/CLAMP-IT/moodle-blocks_filtered_course_list/wiki/Filter-by-enrolment-method .
  • Brandon Jimenez
    Fri, 1 Feb 2019, 1:13 AM
    Hi Kevin:

    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
  • Brandon Jimenez
    Fri, 1 Feb 2019, 3:02 AM
    a little edit to my previous post:
    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?
  • Kevin Wiliarty
    Fri, 1 Feb 2019, 3:17 AM
    Hi, Brandon. Thanks for commenting here and even for identifying a possible code solution. I'll have a closer look soon and get back to you in the next day or two.
Please login to post comments