Skip to content
This repository has been archived by the owner on Oct 4, 2019. It is now read-only.

About_EN

DrClockwork edited this page Jul 11, 2017 · 1 revision

Database and variables

Variables

Name Value(s) Description Default
H5P_URL text/url Base url for H5PP. The same as chooses in the urls.py file but starting with a '/'. All pages related to H5PP begin with this address. '/h5p/'
H5P_LANGUAGE text/languagecode The language for the plugin and contents type. The language of the plugin are available in english or french. Contents type have many languages, the translation of the contents come from the original H5P plugin. 'en'
H5P_EXPORT text/path If specified, enable export of h5p contents (.h5p file format). Designates a folder to store exports begin with '/' and end by '/'. '/exports/'
H5P_SAVE number/seconds or boolean Value 0 or above if enabled. False is disabled. Content state are saved every specified seconds. 30
H5P_DEV_MODE number Value 0 or 1. Activate the development mode. IN BETA, this feature should be deactivate for the moment 0
BASE_URL text/address The hostname of your server. Must be specified. 'http://localhost:8000'

Database

Taken from official H5P documentation.

Name Description
h5p_contents_libraries Connects the Content to multiple Libraries which are required by the content. This is essentially a cache, but it makes it a whole lot easier to find out which files you must load when displaying the content.
h5p_libraries Represents a JavaScript library(/Content Type), e.g. H5P.MultiChoice.
h5p_libraries_libraries Represents a requirement to another Library, e.g. H5P.MultiChoice requires H5P.JoubelUI.
h5p_libraries_languages Represents an available translation for the given Library, e.g. the Italian translation for H5P.MultiChoice.
h5p_contents Represents an instance of a Content Type(JavaScript library). It will hold the start parameters needed and a reference to the Library.
h5p_points Simple tracking of how many points the User scores on each content. Not really required, but very nice to have.
h5p_content_user_data Keeps track of different user data for each content, e.g. it can store the previous content state so that the user may resume where he left off. Not really required either.
h5p_events Represent the log of the activity from H5PP
Clone this wiki locally