Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-79375

Embed H5P not correctly implemented when importing or restoring

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • 4.0.10, 4.1.5
    • Backup, H5P
    • None
    • MOODLE_400_STABLE, MOODLE_401_STABLE

      Description

      Core H5P activities integrate with the embed code into a lesson activity to get the grades back are not correctly recreated during importing or restoring.

      The H5P iframe code link to an intern file. For example : https://mymoodleurl/h5p/embed.php?url=https%3A%2F%2Fmymoodleurl%2Fpluginfile.php%2F3777207%2Fmod_h5pactivity%2Fpackage%2F0%2Fcourse-presentation-2212.h5p&component=mod_h5pactivity

      In the restored course, the link of the iframe is the same and it links to the activity from the source course.

      If I use the H5P plugin (mod_hvp), the behavior is different.
      During restoration, the embed link is automatically updated to link to the new course activity because the iframe generated with mod_hvp refers to the activity ID.

      How to test?

      With the core H5P activity :

      1. In the content bank of a course, create a new H5P course presentation with a multiple choice question;
      2. In the course, create an H5P activity linking to the content bank's H5P file;
      3. Check the embed button in H5P options;
      4. In common module settings, availability option must be on "Make available but don't show on course page" and save the activity;
      5. Create a lesson or a page ressource and paste the H5P embed code.
        It's the only solution I've found to get students grades back;
      6. Make a backup of the course;
      7. Create a new course and import the backup.
        In the lesson or page, the embed code still the same, linking to the source course.

      The iframe source is https://mymoodleurl/h5p/embed.php?url=https%3A%2F%2Fmymoodleurl%2Fpluginfile.php%2F3777207%2Fmod_h5pactivity%2Fpackage%2F0%2Fcourse-presentation-2212.h5p&component=mod_h5pactivity and it is not updated during restoring.

      With the H5P plugin (mod_hvp) :

      1. In the course, create an H5P Course presentation activity with a multiple choice question;
      2. Check embed button, in common module settings, availability option must be on "Make available but don't show on course page" and save the activity;
      3. Create a lesson or a page ressource and paste the H5P embed code;
      4. Make a backup of the course;
      5. Create a new course and import the backup.
        In the lesson or page, the embed code links to restored H5P activity in the new course.

      In this case, the iframe source is https://mymoodleurl/mod/hvp/embed.php?id=1702837 and it is updated during restoration.

       

      Perhaps there's another way of integrating H5P content that saves students' grades and allows them to be restored in another course, but I don't know it.

      Thanks for your help.

            Unassigned Unassigned
            yannick.cordel@univ-lorraine.fr Yannick Cordel
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.