Hi there, I was wondering how to get a lot of my Moodle quiz questions in Opigno... Found a solution to automate the bulkcreation of h5ps. I'm now trying to import the h5p's into Opigno and have some questions about the opi files. What happens if an opi-file holds an activity-id that is already in use in Opigno? Say activity-id 10 is in Opigno and I try to import an opi-file which also has an activity-id set to 10? What happens is an opi-file does not have an activity-id at all? Does Opigno add the activity-id to the new imported h5p by itself? Is there more documentation about the importing function somewhere? Update on the above issues: seems like Opigno gives a new id to the imported activity, that's okay. Opigno expects the h5p in the imported opi-file to be named as interactive-content-[id].h5p. This is a little bit strange as far as I can see... It assumes that all imported h5ps were formerly exported from Opigno. Why not read the opi file for the existence of a proper h5p file and a json file? You can then name the h5ps like you want, f.i. with a coding name that says something about the content. After importing an exported activity from Opigno I get the following error: The website encountered an unexpected error. Please try again later. Error: Call to a member function getFileUri() on boolean in Drupal\opigno_module\Form\ImportActivityForm->submitForm() (line 89 of profiles/opigno_lms/modules/opigno/opigno_module/src/Form/ImportActivityForm.php). Has this something to do with the fact that I have my Opigno in a subdirectory of my website??? Seems that the real path of getFileUri function isn't retrieved so the import fails. Help very much appreciated! Thnx in advance, viragom
UPDATE on the above...
We will take a look at this, to try to replicate the issue.