adaptlearning / adapt_authoring

A server-based user interface for authoring eLearning courses using the Adapt framework.
https://www.adaptlearning.org/
GNU General Public License v3.0
515 stars 284 forks source link

Supporting HTML-based resources in Assets #1791

Open fabiobeoni opened 6 years ago

fabiobeoni commented 6 years ago

Feature Request

Affected Area

Assets library, assets import and export to course

Requested Feature

Currently if you try to import an HTML file into the Assets Library you can complete the upload, but the HTML file doesn't appear in the assets list. Moreover, the HTML file uploaded in the assets doesn't get exported to the course build.

Use Case

A user creates an HTML5-based content with an external editor, let's say Adobe Animate. Then he wants to include this content into the course.

User has a single HTML file or a ZIP including many files referring to a single entry point in the root

By the AT:

  1. user uploads the HTML file into the Assets Library (HTML file holds an animation done with Adobe Animate or similar)
  2. with-in the course page, the user includes an iframe in a block
  3. the user can set the iframe SRC by opening the Assets Library and selecting the HTML file resource
  4. the iframe shows the HTML file content while previewing the course (and of course when exported ;))

Benefits

  1. user can include any kind of HTML5-based content created with external editors, and fill some gaps of Adapt AT. Is the easiest way to bring custom and powerful vector animations into an Adapt course.
  2. HTML5-based content included in such way can work offline too, while they cannot when you embed them from external web site.
  3. HTML5-based content can be a small client-side app or widget provided by the client company (some tool they have and they need to teach students about it in the course).

Additional Information

Using the iframe as it is you may achieve the same result by referencing and external HTML file resource from another domain (like an embedding), or even an internal HTML file resource manually added to the course build export. Unfortunately this procedure is time consuming and has a really poor user experience.

paul-mediakitchen commented 6 years ago

Yes please this sounds great!!

fabiobeoni commented 6 years ago

I completed this feature, it also supports native Adobe Animate CC packages (.oam files). Waiting to open a pull request.

paul-mediakitchen commented 6 years ago

Great I will give this a test. Thank you for creating this