-
Notifications
You must be signed in to change notification settings - Fork 0
Notes on conversion
Brad Smith edited this page Mar 21, 2016
·
9 revisions
- Looks impressively simple. Documented here.
- It looks quite easy to extend the list of supported content types in and H5P CoursePresentation, as shown here
Should be able to make something based on the Greeting Card tutorial, but with atext
input that uses atextarea
widget instead of an image.-
On submission, the question would need to generate an xapiEvent with the submission content.- Further documentation here
There's also a question on the H5P forum about this. If we create a new content type, we should post about it there.- This project has been started and has a repo. The forum post mentioned above has been updated with a link to it.
It looks like we could create a QuestionSet content type that is actually a group of question instances, with a setting in thesemantics.json
for the number of questions in the set to show, and logic inQuestionSet.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).
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/