Fill in the Blanks

Creating an "End of Quiz" link to move forward

khewss's picture

Hi,

I've been using the Quiz options in H5P in my Moodle (v3.8) portal to create quizzes. However, I've found that whenever students complete their quizzes, they would have to close that browser window, in order to get back to the previous tabbed page. 

Is there a way to put a URL link at the end of the quiz, so students can "just click" to move forward to another topic/quiz or wherever I'd want them to move forward to? Although this is available in the Interactive Video option, where I can set a pop up window at the end of a video that allows URLs to be linked.

Adding .h5p activities programmatically to Drupal 8 nodes

Forums: 
I am using the H5P Drupal 8 module and am trying to inserting .h5p zip archives into newly created nodes through a script in a custom module.

I have tried to use the following code and am passing (to my knowledge) a complete $h5p_content array:

$H5PObj = H5PDrupal::getInstance();
$result = $H5PObj->insertContent($h5p_content, $contentMainId = NULL);

Am I missing something ? Do I need to call another function aside from insertContent()?

Pages