Is there a way for a particular moodle hub site to be included in the list of repositories of our moodle site. Just like google docs, youtube or dropbox, can I add a hub site, that we created for several other moodle sites to draw courses from,?
I use moodle for a local manufacture to provide their customers access to their products SCORM training packages. We have a separate moodle instance for each major customer but the courses are the same and are stored in the hub we created. Is there a way to upload, "restore", a course to a customer's moodle instance directly from the hub?
Can't answer your question directly, would imagine it would require some special programming, but there is a way to do this …
When users are previewing a listing of available course to download, there is a Download button.
If one were to copy the URL behind that button, and then, in editing the Creator Notes, create a link using the copied URL, it might be possible
for the 'customer' to restore via URL downloader repo (On their site, URL downloader repo has to be turned on).
Granted, this is NOT exactly what is desired, but …. it works! Tested. It does restore a course without having to download and then re-upload.
Test link: BYOLB MDL2 Course Backup from a HUB
If the above shows an .mbz then it should work when using URL downloader in the restore process.
'spirit of sharing', Ken
I tried this method but get this message in the file picker, "No files available". The URL does not end in .mbz. I am not sure I am doing the process right. I right click and "copy the link address" from the Download button. I then link the term, Upload URL, typed in the creator notes section with the copied link.
I then paste that link into the URL downloader in the file picker and get the No files available message.
Am I doing this right?
Sounds like you are. The provided example was done as I described in the forum posting.
The URL downloader will create an icon and it will not look like a .mbz backup, but rather like this:
http: / / moodle.tcea.org/moodle2/moodle/local/hub/webservice/download.php?courseid=1&filetype=backup&remotemoodleurl= http %3A%2F%2Fmoodle.tcea.org%2Fmoodle2%2Fmoodle
I put some extra spaces in the above so as to attempt in rendering it non-clickable here.
Once the file is linked in your URL downloader chooser, you have to click it again during the restore. That's when the link turns into a .mbz. At least it did for me.
'spirit of sharing', Ken