Custom Library (or extend) + Analytics in D2L
The idea is that students to log in and do as many problems as they would like to do. Check their answers and mark whether they got the quesiton right or wrong. I would like to record an array of the latex for each question attempted, the total number attempted and the number correct (as self assessed).
This leads me to a couple of questions:
- I presume if I write my own Content library from scratch I will need to use some API calls to pass user details to the analytics. Is this documented?
- I don't know what analytics are provided, are these accesed through D2L or H5P.com?
The existing "Arithmetic Quiz" library is close, but I would like a cleaner UI and I don't want to hard code the number of questions, I already have the code to generate questions. I'm clearly missing something as I can't figure out from the files where the first bit of code runs from if that makes sense, so I don't know where to put my code.
I'm sorry that this is a little vague, but I feel if I can get a small bit of help I'll be able to get on top of this.
Many thanks for your patience,
Tue, 12/03/2019 - 10:42
Hi James,Sounds interesting.
Sounds interesting. To get the basics of creating H5P content types you could have a look at our content type development documentation. There is also a tutorial there.
The closest to what you want to do might be H5P Question Set which has a feature for picking random questions from a question bank, but the number drawn is pre-defined there as well.
Here is the documentation for the reporting part. We use xAPI to communicate between the content types and the H5P Core.