repository

Hello - We are using H5P within our Moodle LMS. We love it! Soon, there will be dozens of separate courses, each using copies of these H5Ps. Here is the concern. If we want to make revisions to an H5P - we don't want to be making those revisions to dozens of courses (that are using copies of the H5Ps) - We woudl like to make corrections to one instance of the H5P - and have that automatically correct the others. This is currently possible for SCORMs, using a repository. I am wondering if it possible with H5P. Thanks! 

0
0
Supporter votes Members of the Supporter Network can vote for feature requests. When the supporter network has generated sufficient funding for the top voted feature request it will normally be implemented and released. More about the H5P Supporter Network
otacke's picture

Hi akaskens!

Unfortunately, the only feasible option to do this right now would be to copy the changed contents to all the "same" contents inside the moodle database either manually or using a script created for this purpose.

Best,
Oliver

Hi Oliver, 

What do you mean by "copy the changed contents to all the "same" contents inside the moodle database"? Could you give me an idea of how that would be done?

I definitely second the repository idea, or having some source or master content type, especially with images and audio, so that it can be reused or generate content seamlessly. 

otacke's picture

The parameters that you entered in the editor of a content type are stored inside moodle's database in the table hvp. We don't have a feature to do this from within the plugin, but you can create your own script or query that does the job, of course.

WARNING: Don't test this on live data, as with all database operations, things can go wrong.

The field json_content holds the original parameters and the field filtered holds a validated/sanitized version of this field. Also shortly, the table will have some new fields that will be relevant for "duplication" (authors, source, year_from, year_to, license, license_version, changes, license_extras and author_comments). If you select these fields (and probably also time_modified) from the "master content" and update the corresponding entries for the "slave" H5P content types accordingly, then you're done for the textual parameters at least. Unfortunatey (but understandably), moodle has some access restrictions for files, so this will not work for links to images, audio and video stored within moodle across courses.

Best,
Oliver

kennibc's picture

I think the solution for what you want to accomplish is only feasable by hosting the H5P activities outside of Moodle and using something like LTI to connect to the resources.  That way from Moodle the students are just clicking to a common source which can be updated.  This is how most pre-made Moodle courses are done that I have worked with.  All the special content and interactive elements of the course are hosted outside of Moodle and embedded using LTI.  https://h5p.com/ has LTI integration with the LMS so if that is true it might help.  I don't know how the actual H5P modules are embedded.  The embedding might not be through LTI in which case this wouldn't work.  Just a suggestion.