Closed SteelWagstaff closed 4 years ago
👍
Create php template that displays activity title and H5P shortcode for all H5P activities (i.e.
Activity Name 1
[h5p id="1"]
Activity Name 2
[h5p id="2"]
Doesn't need admin link, but should have reliable URL (i.e. h5plist.php or just h5plist).
If possible, can this display page lazy load on scroll (to help performance for books/pages with lots of activities?
H5P activity lists will be generated for each book at a predictable path: https://network.domain/booktitle/h5p-listing/
, e.g. https://integrations.pressbooks.network/steelstest/h5p-listing/
I was able to determine that the h5p listing display issues were because of the activities and not because of the list itself. There are some implications that has for the listing page, i.e. that when one element cannot display, it somehow affects whether or not other h5p elements on the page display, regardless of whether those other elements have the same technical issues. More important to note for support than for development.
My only suggestions would be:
1) to make the h5p listing page consistent with the cloning behavior. Currently, all H5P elements a user has created will display in the list, but only those in public chapters can be cloned
2) to remove access to the H5P listing page when the H5P plugin is turned off. Even though the H5P activities don't exist in the book or back end anymore, the list still "displays" the activity, as a plain text shortcode:
Behavior to note:
Two proposed refinements:
https://network.url/testbook/h5p-listing
-- the cloning routine should fetch and clone all of the H5P activities on that page/in that book to the target.
Generate an optional page/chapter that just includes all of the visible H5P activities for a given book (would function like the glossary list tool, basically, but for H5P activities). The page could display as a back matter type, or as a published page at a consistent path for all books. Additionally, we could consider adding a menu column to the H5P list (would require forking the H5P plugin) that let book admins add/remove individual activities from the overall list (as can be done with glossary terms).