Upload Metacourse links

Blocks ::: block_metalink
Maintained by Picture of Mark JohnsonMark 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:
84 sites
10 fans

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


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

Comments RSS

Show comments
  • Picture of Joseph Baxter
    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
  • Picture of Mark Johnson
    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.
  • Picture of Joseph Baxter
    Mon, Jun 9, 2014, 8:59 PM
    Hi Mark,

    Excellent. I will submit a pull request shortly.

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

    Joseph Baxter
    University of Nottingham
  • Picture of Joseph Baxter
    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.
  • Picture of Mark Johnson
    Fri, Aug 8, 2014, 4:37 PM
    Thanks Joeseph, I've just published a release with your fixes!
  • Picture of Joseph Baxter
    Fri, Aug 8, 2014, 5:00 PM
    Cool. Thanks.

    Joseph Baxter
    University of Nottingham
  • Picture of Richard Góg
    Tue, Feb 10, 2015, 8:30 PM
    Great work. It's unfurtunate that is not working on 2.5 sad
  • Picture of Mark Johnson
    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.
  • Picture of Jon Radford
    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??
  • Picture of Elizabeth Dalton
    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?
  • Picture of Jerome Di Pietro
    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
  • Picture of Gilberto Antonio Morales Dmeza
    Tue, Jul 7, 2020, 1:10 AM
    There is a new plugin for this: https://moodle.org/plugins/tool_uploadenrolmentmethods
1 2
Please login to post comments