Create Content Programmatically

Hi there

i wanted to know how to programatically create new content using H5P

As an example: lets say we had 10 questions and 10 answers and we wanted to turn them into a cross word puzzle. is there a way to automate this process?  can we automate the creation process for every H5P function?

 

thanks in advance!

otacke's picture

Hi Shake!

You might want to look into https://github.com/sr258/h5p-cli-creator and the H5P specification at https://h5p.org/documentation/developers/h5p-specification

Best,

Oliver 

dthies's picture

This can be done also with Moodle plugin https://moodle.org/plugins/contenttype_repurpose. Questions can be imported to Moodle question bank from a variety of formats and then to converted to H5P content types including Crossword.