H5P Filter

Filters ::: filter_h5p
Maintained by Robert Schrenk, Zentrum für Lernmanagement
This filter adds the possibility to get h5p content being automatically embedded in textfields based on the activityname.
Latest release:
1304 sites
31 fans
Current versions available: 3

This filter adds the possibility to get h5p content being automatically embedded in textfields based on the activityname.

In order to use this filter you have to activate it after installation and ensure that it is listed above the 'Activity names auto-linking' filter. If you have created an interactive content using h5p you can embed it anywhere in the course you like by using the syntax {h5p:activity name}.


  1. Create an interactive Video with the name "My interactive Video"
  2. (optional) Set the visibility to "available but not shown on course page"
  3. Enter in any textfield the following pattern {h5p:My interactive Video}
It will be embedded automatically and the results will be graded in your course.

Please note, that the activity name is case sensitive!


Screenshot #0


Robert Schrenk (Lead maintainer)
Zentrum für Lernmanagement
Please login to view contributors details and/or to contact them

Comments RSS


  • Sat, Sep 7, 2019, 10:57 PM
    Hello, if you embed the H5P-Content in a text as a static URL (e.g. in a book) and you copy the resource to another course then the URL will not change. This is problematic if you use the H5P together with gradings and conditions. The filter only ensures that the H5P-Resource is taken from the correct (the current) course. Therefore it really has an advantage wink What do you mean by "all connection with the original page is lost"? Kind regards
  • Sat, Sep 7, 2019, 11:12 PM
    @Robert, I expect each method has its own advantages & drawbacks. And I have not experimented with gradings & conditions...
    What I mean is that, if you use your filter to insert a link to an H5P content inside e.g. a Moodle page, once you have clicked on that link you navigate away from that page and there is no obvious way to come back.
  • Sun, Sep 8, 2019, 5:14 AM
    I'm sorry I had missed "...ensure that it is listed above the "link activites"-filter" in your instructions. I am pleased to report that your filter works fine, just as expected!
    Actually, your instructions should read "...ensure that it is listed above the 'Activity names auto-linking' filter"
    Thanks for a very useful filter/plugin!
  • Mon, Sep 9, 2019, 4:13 PM
    ok - did so.
  • Thu, Sep 12, 2019, 7:06 AM
    It would be awesome if there could be an H5P button in the Atto editor, and it allowed you to choose which type of H5P activity to create and embedd.
  • Thu, Sep 12, 2019, 2:23 PM
    Hello, this would indeed be nice.
  • Wed, Oct 30, 2019, 3:36 PM
    hello, installed and placed it above the 'Activity names auto-linking' filter, but it appears as link only
    any help or idea?
  • Wed, Oct 30, 2019, 3:37 PM
    Sounds as if another filter is executed prior to h5p_filter.
  • Tue, Dec 17, 2019, 11:45 PM
    We love this filter but have encountered a problem in Microsoft Edge 44.18362.449.0 - embedded activities are not resizing properly, background images not resizing and all content height limited so showing vertical scroll bar.. most annoying!
  • Wed, Dec 18, 2019, 10:47 PM
    Hello, if you have issues please use the bugtracker on github https://github.com/rschrenk/moodle-filter_h5p/issues. As for the particular problem I would need more information. Do you have a screenshot or something? Unfortuanetly Microsoft Edge is not the best browser out there and will be dropped by Microsoft in favor of Edge Chromium that uses the Open Source implementation of Chrome as Webkit. This new browser will be rolled out by Microsoft by January via the Windows Update and will replace most of running Edge-Browserversions. Maybe the problem is not worth to cope with...
  • Tue, Apr 21, 2020, 3:25 PM
    I get the error ''H5P filter cannot be used, it may not be installed'' after I installed it and activated it. Ive tried putting it above the ''non-linking'' filter, no result.
    I use Moodle version 3.5.10., any thoughts on how I could make this filter work?
  • Tue, Apr 21, 2020, 4:42 PM
    Hello, we used it in Moodle 3.5.6 and upgraded without any issue to 3.5.11 recentlry. Do you have any error messages that appear? Perhaps you should consider to activate debugging messages to see what is going wrong.
  • Trille
    Tue, Jun 22, 2021, 1:37 PM
    Hi Robert.
    Very useful filter - thanks.
    Any plans for an upgrade for Moodle 3.10 or 3.11?
    Thanks a lot!
  • Tue, Jun 22, 2021, 5:26 PM
    Hello, you can safely use this plugin also in Moodle 3.10 and Moodle 3.11. We will support this plugin at least until next year, but currently there are no major issues that require an actual update.
  • Tue, Jun 22, 2021, 11:54 PM
    Hello, I updated the plugin so that it shows it supports Moodle 3.10 and Moodle 3.11 too.
Please login to post comments