Assistance with Moodle and New Content Types
Hello everyone,
I am making a post here in hopes of getting some help in developing my own H5P project. I'm doing it as a student project and seem to be a bit lost under all the documentation and knowhow needed to work with H5P and moodle.
So far I have made a project with this structure:
h5p-project/
├──h5p.json
├──content/
│ └──content.json
└──H5P.RoutingSim/
├──.h5pignore
├──library.json
├──semantics.json
├──images/
│ └──Router_symbol_icon-Blue.svg
├──scripts/
│ ├──routing-sim.js
│ └──simulator.js
└──styles/
└──routing-sim.css
I have recently managed to get it working using the moodle core plugin (mod_h5pactivity), while I was usually using mod_hvp.
Do you have a recommendation on which one to use and how to develop it further?
The file itself is attached below.
p.s. please keep in mind this is a work in progress and not the final version
otacke
Sat, 05/09/2026 - 00:16
Permalink
Just looking at this on my
Just looking at this on my phone, so I won't dive into the file.
What I can see here is a content file. Do you really build this by hand and try to upload that anywhere?
Either way:
The H5P.RoutingSim folder name is lacking the version number. I'd also add an icon.svg file or the H5P Hub client will miss that one. The rest will depend on the contents.
Oliver Kr
Wed, 05/13/2026 - 17:21
Permalink
Yeah...
It seems I completely missed the docs page that you linked below for h5p-cli. I have been writting this code raw in Code - OSS and then zipping the folder with
<em>rm -f RoutingSim.h5p && zip -rDX RoutingSim.h5p h5p.json content/ H5P.RoutingSim/ --exclude='H5P.RoutingSim/.h5pignore'</em>
otacke
Sun, 05/10/2026 - 20:24
Permalink
Just tried to upload the file
Just tried to upload the file, and to my surprise, H5P did not care and installed the library (even though `H5P.RoutingSim-0.6` is what H5P itself would export to a content file).
Is your question what platform you should use for development? The H5P plugin for Moodle or Moodle's own H5P integration? Neither. H5P CLI is way more convenient (https://h5p.org/h5p-cli-guide).
Quick tips:
If you want to check things yourself in more detail: https://snordian.de/2023/04/29/how-to-review-h5p-content-types/
Oliver Kr
Wed, 05/13/2026 - 17:10
Permalink
Thank you
Thank you so much for taking the time to give me feedback!
I appreciate it and will make sure to update the code when I get the time. Currently I am swamped with writting the paper for the integration and development of said code.
I was using ES5 for compatibility sake, maybe someone would try and run it on an old browser, but I would like to modernise. This syntax gives me a headache. :)
Thanks again! I will repost the modernised code at some point here.
Cheers,
Oliver
otacke
Wed, 05/13/2026 - 19:07
Permalink
ES6 was introduced in 2015,
Oliver Kr
Wed, 05/13/2026 - 19:38
Permalink
Understood, will update
Understood. I come from a community where people often use old, deprecated software, so making sure it works without backporting became a habit of sorts.
I will definitly update this to newer versions, especially if H5P group only guarantees support for the latest two versions of a browser. I must've missed the warning in the docs.
Thanks again,
Oliver
otacke
Wed, 05/13/2026 - 21:12
Permalink
No. It's not in their
No. It's not in their documentation. You must know where to look too often, or just have learned from experience :-/
They only specifically mention support for accessibility at https://help.h5p.com/hc/en-us/articles/7505444789405-Accessibility-statement-for-H5P-com. But one of the developer once told me that this is true for code, too. They don't actively pursue to use the latest stuff though, so they often support older browsers, too.