Upload Metacourse links

Blocks ::: block_metalink
Maintained by Mark Johnson
This block allows linking of metacourses and child courses by upload of CSV flatfiles. Imports can be done by ad-hoc upload, or by a regular cron job.
Latest release:
93 sites
10 fans
Current versions available: 1

This block is based on the Upload Tutor relationships block, but instead of linking users together, it links courses together using Metacourse links.

The block accepts CSV files in the following format:
operation, parent_course, child_course

  • operation can be add (to link) or del (to unlink)
  • parent_course is the ID Number of the meta course
  • child_course is the ID Number of the course

After being linked, all users of child_course will be enrolled to parent_course via the metacourse link.

The file can be processed by the block on demand through the block interface itself, or automatically via a cron job.  The block's settings allow a location to be configured for the cron file, and processed files can be archived if required.

Please dont report bugs here

If you experience an error with the block, or would like to request a feature, please use the "Bug Tracker" link below.


Screenshot #0
Screenshot #1
Screenshot #2


Mark Johnson (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS


  • Mon, Jun 9, 2014, 6:39 PM
    Andrew C it appears to work but does throw errors due to deprecated functionality.

    We (UoN) will be making a pull request to get the necessary changes implemented. We are not sure if the plugin is still maintained though.

    Joseph Baxter
    University of Nottingham
  • Mon, Jun 9, 2014, 8:35 PM
    Hi Joseph, I'm not actively developing this plugin at the moment, but if you submit a pull request I will review & merge it.
  • Mon, Jun 9, 2014, 8:59 PM
    Hi Mark,

    Excellent. I will submit a pull request shortly.

    Joseph Baxter
    University of Nottingham
  • Tue, Jun 10, 2014, 2:32 AM
    Thanks Joseph, the new release has your fixes!
  • Tue, Jun 10, 2014, 4:36 PM
    Thanks Mark.

    Joseph Baxter
    University of Nottingham
  • Thu, Aug 7, 2014, 4:14 PM

    I have submitted some further fixes for the Moodle 2.6/2.7 version for some issues noticed by our testers:

    1. settings screen was not accessible
    2. non-managers could add the block on homepage

    I have also added a couple of behat tests.

    Joseph Baxter
    University of Nottingham
  • Andrew
    Thu, Aug 7, 2014, 6:30 PM
    Hi Mark, Thank you for your work on this block. I have the same 2 problems as Joseph (above) on Moodle 2.6.
  • Fri, Aug 8, 2014, 4:37 PM
    Thanks Joeseph, I've just published a release with your fixes!
  • Fri, Aug 8, 2014, 5:00 PM
    Cool. Thanks.

    Joseph Baxter
    University of Nottingham
  • Tue, Feb 10, 2015, 8:30 PM
    Great work. It's unfurtunate that is not working on 2.5 sad
  • Tue, Feb 10, 2015, 8:52 PM
    Hi Richard,
    I'm afraid I won't be looking into issues with versions of Moodle that are no longer supported, such as 2.5. I'd recommend upgrading to a supported Moodle release.
  • Fri, Feb 13, 2015, 8:29 PM
    Upload Metacourse links does this need to be a local path of unc path?? Where do I find the manual upload csv path??
  • Mon, Mar 9, 2015, 10:19 PM
    We've been happily using this plugin on Moodle 2.6, and we are about to migrate to 2.8. Will this plugin work with that version?
  • Wed, Aug 5, 2015, 4:11 PM
    Hi Mark,
    Same question as Elizabeth... do you have any plans to create a version for Moodle 2.8 ?
    Many thanks
  • Tue, Jul 7, 2020, 1:10 AM
    There is a new plugin for this: https://moodle.org/plugins/tool_uploadenrolmentmethods
Please login to post comments