Static Pages

General plugins (Local) ::: local_staticpage
Maintained by Logo "Moodle an Hochschulen e.V."Moodle an Hochschulen e.V., Alexander Bias
Moodle plugin which displays static information pages which exist outside any course, imprint or faq pages for example, complete with Moodle navigation and theme
Latest release:
3937 sites
178 fans
Current versions available: 18

We have seen Moodle installations where there was a need for displaying static information like an imprint, a faq or a contact page and this information couldn't be added everything to the frontpage. As Moodle doesn't have a "page" concept, admins started to create courses, place their information within these courses, open guest access to the course and link to this course from HTML blocks or the custom menu.

We thought that this course overhead doesn't make sense, so we created this plugin. It is designed to deliver static HTML documents, enriched with Moodle layout and navigation as a standard Moodle page which exist outside any course. Static pages will be available on catchy URLs like and can be linked from Moodle HTML blocks, from your Moodle theme footer and so on.

Using this plugin, you can create information pages within moodle, but without misusing a whole course just for showing a textbox. It is not meant as a fully featured content management solution, especially as you have to work with raw HTML, but it is quite handy for experienced admins for creating some few static pages within Moodle.

Please see README file for details about the usage and features of this plugin.

No support in the comments section on this page

Please note that we don't provide any support for this plugin in the comments section on this page.

We appreciate your commendation and reviews for this plugin in the comments. For bug reports and support requests, please read the extensive information in the plugin's README file first and create, if needed, a ticket in the bug tracker which is linked below.

Thanks for your cooperation.


Screenshot #0


Logo "Moodle an Hochschulen e.V."
Moodle an Hochschulen e.V. (Lead maintainer): Maintainer
Alexander Bias: Maintainer
Ulm University: Initial Maintainer
Kathrin Osswald: Developer
Please login to view contributors details and/or to contact them

Comments RSS


  • Wed, Aug 31, 2016, 6:58 PM
    Hi! I would like to use a static page to show a calendar ( I tried it first using an iframe but I wasn't very happy with the resizing of the calendar. Using the fullcalendar script directly in a static page results in a blank page when opening it in Moodle which I guess is due to the js libraries not being loading properly. My questions: Is there a way to show this calendar within a static page at all? Where would I have to place the links to the libraries to not interfere with the ones loaded by Moodle? I used Moodle's additional html section to save all css and js links but it didn't work! I really appreciate any help!
  • Mon, Sep 5, 2016, 5:30 PM
    Hi! May I ask how to show blocks on specific static pages instead on all of them! I can choose between 5 entries in the block configuration (local-staticpage-view, local-staticpage-view-*, local-staticpage-*, local-* and every page) but nothing is changing at all! Am I missing something? Thanks a lot in advance!
  • Sat, Sep 10, 2016, 8:39 PM
    I created an html page on word. While my static page opens up, however, the images in the page do not load. Any idea how I can resolve this? Thank you.
  • Wed, Sep 14, 2016, 4:56 PM
    Hi Anusha,

    If you look at, you will read:
    "If you want to include images into your static page, you have to upload them somewhere else. local_staticpage is not capable of hosting / serving image files. Linking to image files, please do yourself a favour and link to them with absolute URLs, not relative URLs."
    I think this should answer your question.

    Hi Georg,

    sorry for the late answer.

    Regarding the calendar:
    On the one hand, I can't give you really good help how to add this JS calendar to a static page. I can only tell you to make sure that the static page plugin is configured to not clean the static page content because otherwise the JS code you add to a static page might be dropped. Everything else exceeds my time to support this plugin, sorry.
    On the other hand, you can't add any PHP code to display the Moodle-internal calendar to a static page, sorry.

    Regarding the block placement:
    I am not aware which version of the plugin you are using. With the latest version of the plugin (which is the only one we support), it is possible to add a block to a static page and to configure in the block configuration to show the block on static-.html (which means only this page) or static-* (which means all static pages).

    Thanks anyway,
  • Thu, Sep 29, 2016, 11:33 PM
    Hi Alexander,

    many thanks for your reply! Well, I successfully embedded the calendar in a static page, finally using an iframe and it works like a charm now!

    I'm still not able to add a block only to a specific static page, using the latest version of the plugin on Moodle 3.1.2+. In the corresponding block configuration I can choose between local-staticpage-view, local-staticpage-view-*, local-staticpage-*, local-* and every page. I tried all settings but my block shows up on all static pages... Am I missing something?

    Kind regards,
  • Tue, Oct 11, 2016, 3:53 PM
    Hi Alexander, may I ask again how to add a block for one static page only! If I'm doing so the block always show up on all my static pages. Moodle 3.1.2+, latest version of static pages

    Many thanks in advance!
  • Thu, Oct 13, 2016, 2:37 AM
    Need some help.
    I need to embed some java script code into a html file and do some handshake with a cloud service. Can I use this plugin to do so.
  • Thu, Oct 13, 2016, 10:27 AM
    I am trying to do the same thing!
  • Wed, Oct 19, 2016, 5:12 AM
    Hi. I am new on Moodle and I am very interested in the Static Page plugin. Installation was easy and uploading html files went fine too. However, I am unable to see my files on the browser. I have used the path for mysite/mymoodlefolder/static/myfile.html but I only get a 404 message indicating the page was not found. I have tried every possible combination, but still no results. I wonder what I might be doing wrong.
  • Wed, Oct 19, 2016, 6:46 PM
    Hi all,

    sorry for the late replies again.

    I wrote you a personal message.

    from my point of view, you are free to add whatever you want to the .html file as long as its valid HTML (with JS embedded if necessary). Just give it a try. I am sorry that further support is out of scope of our work for this plugin.

    Have you read ?
    Basically, the static page should appear on (following your example) mysite/mymoodlefolder/local/staticpage/view.php?page=myfile.
    The clean URL will only work if you have configured your webserver to rewrite the URLs.

  • Thu, Oct 20, 2016, 6:42 PM
    Hi Alex,
    I had a problem finding my HTML pages (on Moodle 3.1.x)
    I've used you example path: mysite/mymoodlefolder/local/staticpage/view.php?page=myfile.
    It turned out that I had to skip the HTML extension and use 'myfile' instead of 'myfile.html'.
    Think it could be useful to make a remark of it in you read-me file not to use html in the path to the file.
  • Sat, Dec 3, 2016, 2:51 PM
    Hi Alex,

    How do I install this manually on local drive? Do I upload the "staticpage" folder to /mod/ directory or somewhere else?
    Currently when I upload it to mod directory, it shows - "Plugins requiring attention" with the details in the screenshot here -

  • Sun, Dec 4, 2016, 4:42 AM
    Hi Chaits,

    well, if you had read, you would know where to install the plugin...

  • Tue, Dec 6, 2016, 8:10 PM
    Hi Alexander,

    Can you answer my question here please :

    I really need your help
  • Thu, Dec 8, 2016, 9:12 PM
    Hi Alex,

    Sorry about that. However when I upload it to the right folder too I get the same message as in the screenshot here -
    Is there a work around for version difference?

Please login to post comments