sandstorm / neosh5p
H5P Platform Integration Plugin for Neos CMS
Installs: 1 383
Dependents: 0
Suggesters: 0
Security: 0
Stars: 9
Watchers: 11
Forks: 7
Open Issues: 21
Type:neos-plugin
Requires
- ext-zip: *
- guzzlehttp/guzzle: ~6.3.0
- h5p/h5p-core: ~1.20.0
- h5p/h5p-editor: ~1.20.0
- neos/neos: >=4.0.0
- neos/neos-ui: *
- dev-master
- 2.1.10
- 2.1.9
- 2.1.8
- 2.1.7
- 2.1.6
- 2.1.5
- 2.1.4
- 2.1.3
- 2.1.2
- 2.1.1
- 2.1.0
- 2.0.1
- 2.0.0
- 1.x-dev
- 1.1.14
- 1.1.13
- 1.1.12
- 1.1.11
- 1.1.10
- 1.1.9
- 1.1.8
- 1.1.7
- 1.1.6
- 1.1.5
- 1.1.4
- 1.1.3
- 1.1.2
- 1.1.1
- 1.1.0
- 1.0.9
- 1.0.8
- 1.0.7
- 1.0.6
- 1.0.5
- 1.0.4
- 1.0.3
- 1.0.2
- 1.0.1
- 1.0.0
- dev-h5p-migration
- dev-neos-upgrade
- dev-dependabot/npm_and_yarn/Resources/Private/Editors/qs-6.11.0
- dev-dependabot/npm_and_yarn/Resources/Private/Editors/decode-uri-component-0.2.2
- dev-dependabot/npm_and_yarn/Resources/Private/Editors/loader-utils-1.4.2
- dev-dependabot/npm_and_yarn/Resources/Private/Editors/shell-quote-1.7.3
- dev-dependabot/npm_and_yarn/Resources/Private/Editors/async-2.6.4
- dev-dependabot/npm_and_yarn/Resources/Private/Editors/url-parse-1.5.10
- dev-dependabot/npm_and_yarn/Resources/Private/Editors/chownr-1.1.4
- dev-dependabot/npm_and_yarn/Resources/Private/Editors/mout-1.2.3
- dev-dependabot/npm_and_yarn/Resources/Private/Editors/shelljs-0.8.5
- dev-dependabot/npm_and_yarn/Resources/Private/Editors/tar-4.4.19
- dev-dependabot/npm_and_yarn/Resources/Private/Editors/path-parse-1.0.7
- dev-dependabot/npm_and_yarn/Resources/Private/Editors/merge-1.2.1
- dev-dependabot/npm_and_yarn/Resources/Private/Editors/hosted-git-info-2.8.9
- dev-dependabot/npm_and_yarn/Resources/Private/Editors/lodash-4.17.21
- dev-dependabot/npm_and_yarn/Resources/Private/Editors/dot-prop-4.2.1
- dev-dependabot/npm_and_yarn/Resources/Private/Editors/y18n-3.2.2
- dev-dependabot/npm_and_yarn/Resources/Private/Editors/elliptic-6.5.4
- dev-dependabot/npm_and_yarn/Resources/Private/Editors/ini-1.3.7
- dev-dependabot/npm_and_yarn/Resources/Private/Editors/websocket-extensions-0.1.4
This package is auto-updated.
Last update: 2024-12-22 13:53:44 UTC
README
THIS PACKAGE IS NO LONGER MAINTANED
H5P Platform Integration Plugin for Neos CMS
Watch this video for an introduction to H5P in Neos!
What is H5P?
H5P is an open standard for rich content in browsers, mainly - but certainly not limited to - for learning use cases and environments. It provides a variety of reusable content types, such as Memory Games, Fill in the Blanks, Multiple Choice Questions and many more. Too get an overview about H5P and its content types, visit https://h5p.org/content-types-and-applications.
What does this plugin do?
This plugin provides a platform integration for H5P into the Neos Content Application Platform, allowing you to use H5P content types seamlessly within Neos.
Maintenance and Compatibility
Sandstorm.NeosH5P is currently being maintained for the following versions:
Installation
Installation is simple and consists of these steps:
- Run
composer require sandstorm/neosh5p
- Install the database model via
./flow doctrine:migrate
- Create a default set of configuration via
./flow h5p:generateconfig
- Make sure the H5P core assets (JS and CSS files) are published by running
./flow resource:publish
That's it - you're good to use H5P content on your site. You new have a new plugin node type "H5P Content" that you can use to integrate with H5P. You also have a set of backend modules to create and manage H5P content, libraries, results and settings.
Make sure to read and follow the integration guide below to really make the best use of the H5P package.
Usage
Refer to this video explaining how to use the H5P plugin: https://www.youtube.com/watch?v=eslFaQ3oj7E
Integration Guide
1. Adjust Settings to your needs
Check the Configuration/Settings.yaml
file and adjust the config settings to your needs. You should not need to change
anything under the h5pPublicFolder
key, as this controls the publishing mechanism of the H5P plugin - this should work
out of the box. You can adjust anything under configSettings
and xAPI
the way you want it. The individual config
settings are described in the Configuration/Settings.yaml
directly.
Important: After you changed anything under the configSettings
key, you need to re-run the ./flow h5p:generateconfig
command to bring it into the database and make it accessible to H5P. This is by design, as H5P is designed for these config
settings to be changed by an admin (which we haven't implemented yet, and likely never will).
2. Configure saving of Content Results and Content State
H5P supports persisting content state (e.g. the currently selected answers to multiple choice questions) and content results (e.g. answers given by a user to a multiple choice question). In order for this to work in Neos, we need to add a few settings.
In your site package's Policy.yaml
, provide the permission to use the controller actions to the role which you
want to be able to use them. If you're using a frontend login package like Sandstorm.UserManagement,
your config could look like below. Replace the role Sandstorm.UserManagement:User
with the one your frontend users
actually have. If you want to save content results and user data even for non-logged-in users, set this to
Neos.Flow:Everybody
. Mind the GDPR implications of this, as you're then persisting data of every user that
interacts with H5P content on your site.
roles: Sandstorm.UserManagement:User: privileges: - privilegeTarget: 'Sandstorm.NeosH5P:FrontendControllerActions' permission: GRANT
3. Integrate xAPI
You can control which username and email address is sent in xAPI statements by implementing your own implementation of
the FrontendUserServiceInterface
. Check the default Sandstorm\NeosH5P\Domain\Service\FrontendUserService
for an
example. You need to configure Neos to use your implementation in your site package's Objects.yaml
. This will give
you the opportunity to interact with your own frontend user model and extract name and email address.
To send xAPI statements to a LRS or other external endpoint, you need to provide a JavaScript that handles the sending
process. This way, you have control over the sending process and can handle any login/routing/statement manipulation
requirements in your own package. The script is injected automatically - all you need to do is provide a path to a
script file under the configuration setting Sandstorm.NeosH5P.xAPI.integrationScript
. Refer to this package's
Settings.yaml
for a detailed explanation (see the comments at the "xAPI" section of the config).
4. Set up a cronjob to remove temporary H5P editor files
Plan a cronjob to remove all EditorTempfiles and associated resources. EditorTempfiles are created e.g. when a user
starts creating an H5P content element and has already uploaded assets (such as pictures), then cancels the process.
We provide a CLI command for this: ./flow h5p:cleareditortempfiles
. Depending on how many users you have that are
creating H5P content, this should be run about once a week.
Known issues / remaining TODOs
- Internationalization is not implemented yet.
- Form validation in the H5P editor is not taken into account.
- Flash messages do not work in the fullscreen content editor.
- Methods for usage statistics are not implemented yet.
- Config settings can not be changed in the GUI, only via CLI command (which is probably fine).
License
License: MIT.
Sponsor
Thanks to our valued customer Deutsches Institut für Erwachsenenbildung Bonn for sponsorship of this package!