main library in h5p.json
Submitted by pkishoregd on Fri, 10/28/2016 - 10:53
Forums:
How add multiple main library's in h5p.json file.
For ex:
{"title":"Multiple Choice","language":"und","mainLibrary":{["H5P.MultiChoice","H5P.InteractiveVideo"]},"embedTypes":["div","p"],
Now If load my app the view shows empty. How do I add two plugins in one app by using the above syntax.
timothylim23
Fri, 10/28/2016 - 11:51
Permalink
Hi, could you please specify
Hi, could you please specify what you are trying to do? Are you attempting to combine two H5P content types together?
pkishoregd
Wed, 11/02/2016 - 05:51
Permalink
Yes. I want to combine two
Yes. I want to combine two contetn types. for ex: "mainLibrary":{["H5P.MultiChoice","H5P.InteractiveVideo"]},"embedTypes":["div","p"].
Here H5P.MultiChoice is one plugin/contenttype and H5P.InteractiveVideo is another. So how do I achieve the same by using single h5p.sjon file. So that I can have the Multiple choice option as well as video interactive in the same page.
timothylim23
Wed, 11/02/2016 - 09:33
Permalink
Could I ask what platform you
Could I ask what platform you are using?
If you are trying to make a visual layout of multiple content types, a new column layout will be released this week that will let you group content types together.
What end goal did you have in mind?
pkishoregd
Wed, 11/02/2016 - 10:39
Permalink
I am running the application
I am running the application using NodeJs - Gulp
pkishoregd
Wed, 11/02/2016 - 10:42
Permalink
Attached the file structure
Attached the file structure of my project. I have the plugins under workspace
pkishoregd
Wed, 11/02/2016 - 10:43
Permalink
My End goal is to have
My End goal is to have multiple content types. For ex: I want Video Inteactive, Multiple choice, Chart...
pkishoregd
Wed, 11/02/2016 - 10:45
Permalink
In a single page
In a single page
timothylim23
Wed, 11/02/2016 - 11:56
Permalink
Great. I think H5P column
Great. I think H5P column will be able to do what you need. It will be released soon. Check back on our blog later this week to check it out:
https://h5p.org/blog
The H5P libaries are not meant to be combined in that fashion and I think if you are looking to have content types within other content types it would be a good idea to check out how question set handles that logic:
https://github.com/h5p/h5p-question-set/