Walkthrough for attach function/using other libraries?
Hello,
I am creating a new content type and to begin, I am simply trying to integrate the Question library. I've defined a basic semantics.json and library.json and I am working on the attach function, but I can't get it to display properly. The instructions on the README do not seem very comprehensive, so I had a look at the Fill in the Blanks source code (on which their examples are based) to see how they did it but naturally it's very complicated at ~1,000 lines. :)
I have also followed some of the tutorials here on the H5P website as well and they were helpful, but still very basic. For example, the Greeting Card tutorial attach function looks very different from what I see about using other libraries. Furthermore, I do not have much experience with JavaScript so my problem could be that I just don't realize how simple it really is.
My question is: have I missed some kind of in-depth tutorial for developers to learn how to integrate a library from zero, and the corresponding attach function to display that library properly?
Regards,
Eric
otacke
Thu, 01/30/2020 - 19:09
Permalink
Hi Eric!Have you had a look
Hi Eric!
Have you had a look at the question-type branch of the boilerplate repository already? It essentially provides you with a template to build your own question-like content type on.
Best,
Oliver
edemattos
Sat, 04/04/2020 - 16:47
Permalink
Thanks! The boilerplate
Thanks! The boilerplate helped a lot!