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

Open H5P file from H5P activity when it was added as a reference

    XMLWordPrintable

Details

    • MOODLE_310_STABLE, MOODLE_400_STABLE
    • MOODLE_311_STABLE
    • MDL-70408-master
    • Hide

      The issue is covered with unit tests. However, some manual tests should be done too in order to check the new link is displaying the expected content (because it's displayed in a new window).

       

      Setup

      1.  Login as admin.
      2. Create a course.
      3. Access to the content bank and upload the attached H5P file.

       

      Testing scenario

      1. Add a new H5P activity to the course.
      2. Fill in the name field.
      3. In the "Package file" field, open the file picker, access to the "Content bank" repository, pick the file you've uploaded previously, select "Link to the file" option and click the "Select this file" button.
      4. Check the following message is displayed bellow the "Package file" field: "Use the content bank (opens in new window) to manage your H5P files"
      5. Check a new window is opened with the main page of the content bank.
      6. Save and display.
      7. Edit the H5P activity.
      8. Check the following message is displayed bellow the "Package file" field: "Access the H5P file in the content bank (opens in a new window)"
      9. Follow the "Access the H5P file in the content bank" link.
      10. Check a new window is opened, displaying the content in the content bank.
      11. Edit this content (for instance, you can add some text to the "Intro") and save changes.
      12. Switch to the main window (the one with the H5P activity form) and save changes.
      13. Check the H5P activity contains now the changes done in the content bank.

       
       

      Show
      The issue is covered with unit tests. However, some manual tests should be done too in order to check the new link is displaying the expected content (because it's displayed in a new window).   Setup  Login as admin. Create a course. Access to the content bank and upload the attached H5P file.   Testing scenario Add a new H5P activity to the course. Fill in the name field. In the "Package file" field, open the file picker, access to the "Content bank" repository, pick the file you've uploaded previously, select "Link to the file" option and click the "Select this file" button. Check the following message is displayed bellow the "Package file" field: "Use the content bank (opens in new window) to manage your H5P files" Check a new window is opened with the main page of the content bank. Save and display. Edit the H5P activity. Check the following message is displayed bellow the "Package file" field: "Access the H5P file in the content bank (opens in a new window)" Follow the "Access the H5P file in the content bank" link. Check a new window is opened, displaying the content in the content bank. Edit this content (for instance, you can add some text to the "Intro") and save changes. Switch to the main window (the one with the H5P activity form) and save changes. Check the H5P activity contains now the changes done in the content bank.    
    • Moppies Kanban

    Description

      Currently there is always a generic link to the content bank from the H5P activity form.

      However, when the H5P is a referenced file from the content bank, it would be nice having a direct link to the specific content in the content bank, in order to display it and make easier to teachers to find and edit it.

      Attachments

        1. arithmetic-quiz.h5p
          731 kB
        2. displaycblink.gif
          displaycblink.gif
          7.69 MB
        3. MDL-70408_Screenshot.png
          MDL-70408_Screenshot.png
          255 kB

        Issue Links

          Activity

            People

              sarjona Sara Arjona (@sarjona)
              sarjona Sara Arjona (@sarjona)
              Carlos Escobedo Carlos Escobedo
              Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
              Anna Carissa Sadia Anna Carissa Sadia
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                17/May/21

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 5 hours, 30 minutes
                  5h 30m