Standalone Editor

pillullis's picture

I managed to get H5P content to work on my website with no issue without having to use WordPress, Moodle or Drupal (I'm just using plain PHP) but now I'd like to know if there's a way to get the standalone editor working the same way and save the generated .h5p files locally in my computer or in the server. 

Thanks for your time. 

thomasmars's picture

Hi,
Yes, the specification and inspecting how a .h5p file is built up should give you some clues: https://h5p.org/documentation/developers/h5p-specification. Getting the editor up should not be too big of a challenge provided that you have a way of loading libraries, but getting all the intricacies of the backend right, like saving temporarily uploaded files, validation and editing might be quite demanding. If you follow the same patterns that the cms integrations/plugins does you should be on the right path.

pillullis's picture

That's great. 

Although I got one (sort of dumb) question: Where can I find the source code for the editor so I can get to work on it. 

icc's picture

Hi, the editor is available at: h5p/h5p-editor-php-library
and you may want to have a look at the core components as well: h5p/h5p-php-library
Also, the CLI tool has some standalone server component that may be of help: h5p/h5p-cli

 

Would you eventually share your code? How far is your editor? I used https://github.com/tunapanda/h5p-standalone to display h5ps bit I am not very happy with that. It seems that the project dies.

Are there any other new implementations?

pillullis's picture

Due lack of documentation we stopped the project for the time being.

Would you share how you managed to get H5P content to work on your website with no issue without a CMS. I am trying with https://github.com/tunapanda/h5p-standalone but for some reason I can not display the content. I followed the instructions but no luck.

Download a .h5p file(123.h5p ex.), change the extension .h5p to .zip(123.zip) and unzip it.

After that,copy the folder 123/ to workspace,then it work.

Mitt94's picture

I follewed the steps but it is not working for me.can you guide me please.

Mitt94's picture

Hello can anyone tell me how can i use h5p on my website without using moodle or drupal or wordpress or any other cms.

BV52's picture

Hi Mitt94,

You can create your contents here and use the embed option to embed the contents. Please note though that it is advisable that you host your site or sign up for H5P.com.

-BV52