Viewer and Editor Exemple in PHP (without CMS)
Submitted by joris.z on Thu, 06/01/2017 - 16:26
Forums:
Hello !
I read on your site that H5P only work with CMS, but after many search I finded, it can work with PHP only. (https://h5p.test.schulcloud-thueringen.de/creating-your-own-h5p-plugin).
Even if I follow the instruction, the player doesn't work for me :
- TypeError: undefined is not an object (evaluating 'window.H5PIntegration.contents')
- TypeError: undefined is not an object (evaluating 'H5PIntegration.contents['cid-' + contentId]')
And nothing is written for the Editor yet.
So, somebody have an example for guide me ?
Thank you!
tomaj
Fri, 06/02/2017 - 08:36
Permalink
Not trivial
It's currently not a trivial task to embed h5p into pages outside the CMS'.
I would recommend you open the console in your browser, and try to study those object that you are missing, on e.g h5p.test.schulcloud-thueringen.de.
H5PIntegration is an object created in JS, that holds the configuration of H5P, and config for each piece of content on the page.
The only examples existing are the 3 plugins:
- Tom
joris.z
Fri, 06/02/2017 - 09:11
Permalink
oh :(
Oh :/
Nobody have integrate H5P without CMS :(
I take my day to try this, thank you