moodle-mod_hvp icon indicating copy to clipboard operation
moodle-mod_hvp copied to clipboard

Setting to disable file upload and only allow link for interative video

Open haietza opened this issue 5 years ago • 3 comments

We try to encourage our faculty to host video content on YouTube and other service providers to maximize storage on our Moodle installation. It would be amazing if the H5P plugin could provide a setting that would allow us to disable the upload a file functionality within the interactive video content type site wide so users only had the option to use an external link.

haietza avatar Jan 30 '20 15:01 haietza

@haietza You could easily achieve that right now yourself by customizing the CSS.

otacke avatar Jan 30 '20 15:01 otacke

That sounds like a good workaround. Thanks for the quick response!

haietza avatar Jan 30 '20 15:01 haietza

@haietza You're welcome. And yes, it's merely a workaround. People can, of course, remove your override and then upload files if they know about that option. If you want to prevent that without modifying the core code, you could also use the alter_scripts hook to add a script that removes the corresponding DOM element when it's set.

There may even be a more elegant way of achieving this, but I'd have to look into the code to check.

otacke avatar Jan 30 '20 16:01 otacke