Skip to content

Notes on conversion

Brad Smith edited this page Mar 21, 2016 · 9 revisions

Creating custom H5P content types

  • Looks impressively simple. Documented here.
  • It looks quite easy to extend the list of supported content types in and H5P CoursePresentation, as shown here

Essay questions

Question pools

  • It looks like we could create a QuestionSet content type that is actually a group of question instances, with a setting in the semantics.json for the number of questions in the set to show, and logic in QuestionSet.js to grab that many of the questions in the set at random and render them.
  • Even better! There is already a Question Set type, so that stands to save us a fair amount of work. We'd just need to add a "display X questions" setting and adjust the grading to account for it (instead of assuming the total possible score is based on the number of defined questions).

Wordpress

Once a .H5P has been uploaded, even though a content.json appears in the subdirectory of wordpress/wp-content/uploads/h5p/content/ that is created for the module, the actual text seems to be loaded into the database (haven't checked the DB, but modifications to content.json don't affect what is displayed in WP, and if you add a distinct string to the module via the WP interface and then grep for it in the filesystem there are no matches). What you can find and manipulate directly through the FS are:

  • Content files (images, videos, etc), which are stored in wordpress/wp-content/uploads/h5p/content/MODULE_ID/...
  • Content type js, css, etc, which are stored in wordpress/wp-content/uploads/h5p/libraries/
Clone this wiki locally