How to add description, carousel images and library to the custom content

Forums: 

We are tring to do some PoC to create custom h5p templates.

I would like to know following

how to add description to the custom library - is it possible add in libarary.js as description ?

how to add carousel images - different format of use?

how to add license.

How to register in h5p hub.

I would like to know if any document to refer.

--
Thanks,
Prakash. S

otacke's picture

  • how to add description to the custom library - is it possible add in libarary.js as description ?
    Please see the documentation on the library.json file. The description that will appear on the H5P Hub needs to be submitted separately if the content type is acceptec by the H5P core team.
  • how to add carousel images - different format of use?
    Don't know if I understand what you mean, but if I understand correctly, you want to include an "Image Slider" as subcontent. There are multiple ways depending on what you're trying to achieve, but the most common one probably is using the library field in semantics (please see the documentation on semantics.json) and then creating the instance as needed using the newRunnable function of H5P core. Don't think this is documented, but having a look at how it is used in e.g. Column and having a look at the actual code should explain how it works.
  • how to add license.
    Please see the documentation on the library.json file. The license needs to be added in the library.json file.
  • How to register in h5p hub.
    Please see the respective post on the developer forum. You will need to reach out to the H5P core team.