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

Add Example and Tutorial links to the H5P editor

XMLWordPrintable

    • MOODLE_310_STABLE, MOODLE_39_STABLE
    • MOODLE_310_STABLE
    • MDL-69520-master
    • Hide

      Setup

      1. Run the following scheduled task via CLI: 

        php admin/cli/scheduled_task.php --force --execute="\core\task\h5p_get_content_types_task"

      Alternatively, you can also run this scheduled task following these steps:

      1. Login as admin.
      2. Access to "Site administration /  Server / System paths".
      3. Set "Path to PHP CLI" to the proper value for you installation.
      4. Access to "Site administration / Server / Tasks / Scheduled tasks".
      5. Run the "Download available H5P content types from h5p.org" task. It might take a few minutes.

      Apart from that, if you aren't using a clean installation, you may need to remove the following H5P content types:

      1. Login as admin.
      2. Access to "Site administration / H5P / Manage H5P content types".
      3. Remove the following H5P content types: "Course presentation", "Arithmetic Quiz" and "Multiple choice".

      After fetching the H5P libraries, query the h5p_libraries table:

      SELECT title, example, tutorial FROM mdl_h5p_libraries ORDER BY example DESC;
      

      Testing scenario 1: both links

      1. Go to the Content bank.
      2. From the query results above, pick an H5P content that has both example and tutorial
      3. Create an H5P content using this library. (selecting it from the "Add" drop-down list).
      4. Check Tutorial and Example links appear on the left-hand side in line with the "Copy" and "Paste and replace" buttons.
      5. Check that the URL for the tutorial link matches the URL in the tutorial column.
      6. Check that the URL for the example link matches the URL in the example column.
      7. Confirm that these links open the tutorial/example on a new window (If the example/tutorial page is not found, it's not a problem. What's important is that the URL matches the record from the database)

      Testing scenario 2: only one link

      1. Go to the Content bank.
      2. From the query results above, pick an H5P content that has an example but no tutorial
      3. Create an H5P content using this library. (selecting it from the "Add" drop-down list).
      4. Check that only the Example link appears on the left-hand side in line with the "Copy" and "Paste and replace" buttons.
      5. Check that the URL for the example link matches the URL in the example column.
      6. Confirm that this link opens the example on a new window. (If the example page is not found, it's not a problem. What's important is that the URL matches the record from the database)

      Testing scenario 3: no links

      1. Go to the Content bank.
      2. From the query results above, pick an H5P content that has no example and no tutorial
      3. Create an H5P content using this library. (selecting it from the "Add" drop-down list).
      4. Check no Example nor Tutorial links appear.

       
       

      Show
      Setup Run the following scheduled task via CLI:  php admin/cli/scheduled_task.php --force --execute= "\core\task\h5p_get_content_types_task" Alternatively, you can also run this scheduled task following these steps: Login as admin. Access to "Site administration /  Server / System paths". Set "Path to PHP CLI" to the proper value for you installation. Access to "Site administration / Server / Tasks / Scheduled tasks". Run the "Download available H5P content types from h5p.org" task. It might take a few minutes. Apart from that, if you aren't using a clean installation, you may need to remove the following H5P content types: Login as admin. Access to "Site administration / H5P / Manage H5P content types". Remove the following H5P content types: "Course presentation", "Arithmetic Quiz" and "Multiple choice". After fetching the H5P libraries, query the h5p_libraries table: SELECT title, example, tutorial FROM mdl_h5p_libraries ORDER BY example DESC; Testing scenario 1: both links Go to the Content bank. From the query results above, pick an H5P content that has both example and tutorial Create an H5P content using this library. (selecting it from the "Add" drop-down list). Check Tutorial and Example links appear on the left-hand side in line with the "Copy" and "Paste and replace" buttons. Check that the URL for the tutorial link matches the URL in the tutorial column. Check that the URL for the example link matches the URL in the example column. Confirm that these links open the tutorial/example on a new window (If the example/tutorial page is not found, it's not a problem. What's important is that the URL matches the record from the database) Testing scenario 2: only one link Go to the Content bank. From the query results above, pick an H5P content that has an example but no tutorial Create an H5P content using this library. (selecting it from the "Add" drop-down list). Check that only the Example link appears on the left-hand side in line with the "Copy" and "Paste and replace" buttons. Check that the URL for the example link matches the URL in the example column. Confirm that this link opens the example on a new window. (If the example page is not found, it's not a problem. What's important is that the URL matches the record from the database) Testing scenario 3: no links Go to the Content bank. From the query results above, pick an H5P content that has no example and no tutorial Create an H5P content using this library. (selecting it from the "Add" drop-down list). Check  no Example nor Tutorial links appear.    
    • Moppies Kanban

      I always found that Joubel's content hub in their H5P plugin was self-helpful.  Can we get the Tutorials and Example links to H5P.org to be added into the H5P content editors or somewhere in the Content Bank.

      Some kind of in-context help and example seems sorely lacking in the new Moodle core H5P implementation. Or, maybe the option to define a help link for each Activity Chooser info page - something user defined?
       

        1. h5p_tutorial_links.jpg
          h5p_tutorial_links.jpg
          24 kB
        2. MDL-69520 (2).jpg
          MDL-69520 (2).jpg
          43 kB
        3. MDL-69520.jpg
          MDL-69520.jpg
          49 kB

            sarjona Sara Arjona (@sarjona)
            jlove E. John Love
            Carlos Escobedo Carlos Escobedo
            Jun Pataleta Jun Pataleta
            Anna Carissa Sadia Anna Carissa Sadia
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

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

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