Activities ::: mod_subcourse
Maintained by David Mudrák
Subcourse behaves as a graded activity. The grade for each student is automatically fetched from a final grade in another course. This allows course designers to organize the learning content into separate units.
Latest release:
2108 sites
116 fans
Current versions available: 10

Moodle Plugin CI

Subcourse is an activity module that represents the final grade obtained in another course. This allows to create "meta-gradebook" in one course, where all final grades from other courses are aggregated.

  • Grades are fetched automatically or can be fetched manually any time.
  • The grade type and other grade item settings are copied from the original grade total item and can not be changed.
  • Subcourse can be automatically marked as a completed when the referenced course is completed.
  • If the final grade in the referenced course is hidden, the associated subcourse activity grade is hidden, too.

This allows to apply the concept of grades aggregation to a next level and aggregate grades across courses.

Diagram illustrating course final grades aggregated to a main course via the Subcourse instances


Screenshot #0
Screenshot #1
Screenshot #2
Screenshot #3
Screenshot #4
Screenshot #5
Screenshot #6


David Mudrák (Lead maintainer)
Vadim Dvorovenko
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Fri, Dec 11, 2020, 12:18 AM
    David - thank you. I missed that.
  • Thu, Jan 14, 2021, 2:03 AM
    Hi David, This plugin seems to fulfill my attempts but i've some problems with it. I'm using the last version of Moodle (3.10)

    When i try to add a subcourse activity in a course I obtain an empty page. In debugging mode, I obtain :
    Warning: require_once(D:\Bitnami\moodle-latest-310\moodle/lib/coursecatlib.php): failed to open stream: No such file or directory in D:\Bitnami\moodle-latest-310\moodle\mod\subcourse\mod_form.php on line 30

    Fatal error: require_once(): Failed opening required 'D:\Bitnami\moodle-latest-310\moodle/lib/coursecatlib.php' (include_path='D:\Bitnami\moodle-latest-310\moodle/lib/pear;.;C:\php\pear') in D:\Bitnami\moodle-latest-310\moodle\mod\subcourse\mod_form.php on line 30

    D:\Bitnami\moodle-latest-310\moodle is the root of my Moodle installation.
    Did i forgot to install another required plugin ?
  • Thu, Jan 14, 2021, 6:47 PM

    finally i found a solution. This problem is related to the deprecation of the coursecatlib.php file. One more problem raises after : coursecat is deprecated also.

    The solution I applied consists in editing file /mod/subcourse/mod_form.php :
    comment out or suppress line 30
    replace coursecat by core_course_category

    This patch seems to be sufficient. Every thing seems to work for me now.
  • Thu, Jan 14, 2021, 7:17 PM

    @Laurent - what version of the module do you have installed? That has been actually addressed two years ago in

  • Thu, Jan 14, 2021, 8:38 PM
    I installed version 9.0.1. The last one in the Moodle plugins list
    Oops.... I see in my instance subcourse version 5.0.1. I uninstalled the plugin and reinstalled it via the "Install now" choosing 9.0.1 in Moodle plugins List. It's 5.0.1 that get installed. If i choose to install it via a download of the zip file, i get 9.0.1.
    An issue on the Install Now process ?
    I didn't have this problem with other plugins i installed this way.
  • Thu, Jan 14, 2021, 10:15 PM

    It could be. When you press "Install now" you should be taken to "My sites" page. What is the Moodle version specified there for your site?

  • Thu, Jan 14, 2021, 11:02 PM
    It says 3.1. I changed it to 3.10 and it seems to be correct now. This was the problem i suppose. Ty very much a very sorry to have taken so much of your time.
  • Fri, Jan 15, 2021, 12:18 AM

    Actually, this illustrates a likely bug in the Moodle / Plugins directory integration. The version number can get easily outdated, and it should not lead to cases like this. May I ask you to report it as a new issue at, project MDLSITE, component "" please. Thanks!

  • Fri, Jan 15, 2021, 11:59 PM
    Grrr, I posted it in the wrong Component : MDLNET ticket MDLNET 545. I don't see any way to either remove it or move it to the right project. I've to wait for a new post now.
  • Sat, Jan 16, 2021, 12:05 AM

    No worries, I was able to move it. Thank you for your report.

  • Wed, Feb 17, 2021, 5:43 PM
    Hi David,
    I'm not sure when did it happen but previously (Moodle 3.8, not sure about plugin version but the latest for Moodle 3.8) plugin allowed to set completion status for subcourse activity as "Require course completed - Student must complete the referenced course to complete this activity." without any "Expected completed on" date set. And it worked great for us as we do not need the date. Just the subcourse to be completed (according settings for course completion in appropriate subcourse).

    Now (Moodle 3.10, plugin 9.0.1) This setting is blocked/disabled until "Expect completed on" is enabled and set.
    Just wondering why is has been set like this and can it be enabled again without enabling completion date? We can't enable this date as students are coming and going randomly. We can't set one date for all of them.
  • Thu, Feb 18, 2021, 5:00 AM

    @Almants - sorry to hear about your troubles. However, I am not able to reproduce that problem. It still works as expected for me and I am able to enable "Student must complete the referenced course to complete this activity" without "Expected completed on". Maybe there are some other additional plugins installed on your site that are affecting this behaviour? Just guessing. I don't know why it should behave like that.

  • Fri, Apr 30, 2021, 1:48 PM
    Hello i m french guy, sorry for my ENglish. I use your plugins in my moodle and its the beginning what i want. I can pay you for continue to devellop this plugins.
    Several thing what i need for my LMS:
    -The possibility for the teacher to drag and drop the course columns in the note's table for easier reading.
    - The same things with the row
    - In the head of ths note's table to see the image's course
    - When the teacher clic on the note's student, he can see the détail of the note's course. "link"
    For my use the key of your plugins is the notes table.
    Thanks for your job. And i'm reday to pay your work for devellop more your plugins.
    Maybe we can change in MP.

  • Fri, Apr 30, 2021, 2:46 PM

    Hello David Gibert. Thank you for your comment and your offer. I must admit though I don't fully understand what you mean by that "note's table". May I ask you, let's move this conversation to the plugin's bug tracker (please find the link above at this page), report a new feature request there and ideally with some screenshots illustrating your use case. Thank you.

  • Mon, May 17, 2021, 5:21 PM
    Hi David,
    Thanks for your reply!
    Just by coincidence I found out, that it is some weird theme behavior. "Expected completion on" checkbox is disabling the input one row above, not same row date fields ... In subcourse plugin case it is "Require course completed". In SCORM case irt is "Require all scos to return completion status". Weird ...
1 2 3 4 5 6 7 8
Please login to post comments