Note:

If you want to create a new page for developers, you should create it on the Moodle Developer Resource site.

H5P styles: Difference between revisions

From MoodleDocs
(info copied from MDL-69087, template, category)
 
No edit summary
Line 1: Line 1:
{{Moodle 3.10}}
{{Moodle 3.10}}
In Moodle 3.10 onwards, H5P content may be styled.
In Moodle 3.10 onwards, H5P content may be styled.


Line 9: Line 10:


For more details, please see MDL-69087.
For more details, please see MDL-69087.
== Backport to Moodle 3.9 ==
This feature has been backported to Moodle 3.9.6 even it's not listed in the [[Moodle 3.9.6 release notes]].
For more details, please see MDL-70759.


[[Category:H5P]]
[[Category:H5P]]
[[Category:Moodle 3.9]]

Revision as of 15:33, 25 May 2021

Moodle 3.10


In Moodle 3.10 onwards, H5P content may be styled.

A renderer with 4 methods has been added to core_h5p:

  • h5p_alter_styles and h5p_alter_scripts, to alter CSS and JS for the player and the editor.
  • h5p_alter_semantics, to modify the fields displayed in the editor (for instance, change the order or remove some of the fields for some specific content-types). The approach for the existing alterLibrarySemantics method in h5p/classes/framework.php was not the expected (because it shouldn't be used to modify existing semantics; this is more about to change then on-the-fly).
  • h5p_alter_filtered_parameters, for adapting the H5P content displayed in the player.

For more details, please see MDL-69087.

Backport to Moodle 3.9

This feature has been backported to Moodle 3.9.6 even it's not listed in the Moodle 3.9.6 release notes.

For more details, please see MDL-70759.