General plugins (Local): Static Pages

Maintained by Picture of Ulm UniversityUlm University, Picture of Alexander BiasAlexander Bias, Picture of Kathrin OsswaldKathrin Osswald
Moodle plugin which displays static information pages which exist outside any course, imprint or faq pages for example, complete with Moodle navigation and theme
3063 sites
143 fans
Current versions available: 15

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 anymore.

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


Picture of Ulm University
Ulm University (Lead maintainer)
Picture of Alexander Bias
Alexander Bias: Developer
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Picture of Rob Jackson
    Sat, Mar 10, 2018, 4:15 PM
    Hello fellow Moodlers

    I would like to use static pages but I have following error on 'List of static pages'...

    The static page is available and can be linked to at the following standard URL:

    The static page should be available to at the following clean URL, but actually a browser won't be able to download and view it (perhaps there is something wrong with your webserver or mod_rewrite configuration - see README file for details):

    I am using fasthosts to host the site and cannot locate htaccess folder. Do I need to create one?

    Force Apache mod_rewrite is unticked!

    Thank you for any advice.

  • Picture of Rob Lowney
    Fri, Apr 13, 2018, 6:35 PM
    Hi there

    I'm testing this plugin at present and am really excited by its potential. It seems to be working perfectly fine for me so far.

    One question - I'd like to be able to see from the Moodle activity logs if my students are viewing the static pages. Is there a way to capture that information?

    Thank you
  • Picture of Kashyap Kr
    Sat, Jul 14, 2018, 6:50 PM
    Hi there,

    I'm using Moodle 3.2+. This plugin is very useful. How can I access/permit my static pages if I'm logged out.
  • Picture of ZOINIA MEDIA
    Tue, Oct 9, 2018, 6:06 AM
    This plugin is very helpful. For Nginx server, the following rewrite worked for me.

    location /static {
    rewrite ^/static/(.*)\.html$ /local/staticpage/view.php?page=$1&$query_string last;

    Thanks again.
  • Picture of Marcos Barrera
    Mon, Nov 26, 2018, 11:06 PM
    Thanks for this plug in, it was needed time ago. However, I am uploading an htm file and getting this code at the begining: YPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "">

    Do you know what I am doing wrong?

  • Stefano Guglielmetti
    Tue, Mar 12, 2019, 4:12 PM
    I am uploading an html file and I still get this line of code appears on the top of the page content:
    "YPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" """
    I saw this issue(, but my html it's clan and not saved from MS Word, so it's not the solution for me... any help please?

    Do you know what I am doing wrong?

  • Picture of Edward Santee
    Sat, Apr 6, 2019, 2:27 AM
    Anyone have any experience with getting a clean URL from a Moodle installation in the Google Cloud platform?
  • Picture of Nikos Sfakianakis
    Thu, Jul 11, 2019, 6:13 PM
    thanks for your work
    i am trying to embed a video from youtube but it doesnt seem to play any ideas?
  • Picture of decalaveras deesqueletos
    Fri, Sep 27, 2019, 7:43 PM
    great work, thanks
    I could put in my site but can't embed videos

  • Picture of Somesh Mishra
    Sat, Dec 14, 2019, 1:33 PM
    Great post. Thanks for the information.
  • Picture of Raj Awasthi
    Mon, Jan 13, 2020, 1:41 AM
    Thank for sharing information
  • Picture of Héctor Lizarraga
    Mon, Mar 30, 2020, 10:26 AM
    Thanks for this plugin, it's fantastic! Now I can serve static content on my moodle site.
    How can I add images to the static pages? I have tried what Darrel Tenter suggested about seven years ago! but with no success. Please help
  • Picture of Sreejith M
    Fri, Apr 24, 2020, 7:25 PM
    @decalaveras deesqueletos ,Héctor Lizarraga
    You may choose NO here in settings>> Clean HTML code

  • Picture of Balazs DaVinci
    Tue, Jun 16, 2020, 3:51 PM
    Hello Static Pages developer team,
    I would like to use Static Pages to create a Contact Form page.
    For creating the contact form I use 2 plugins, the Contact Form (local_contact) and the FilterCodes (filter_filtercodes) plugins.
    The created contact form works when it is added as page activity within a Moodle course.
    But it doens't work when I add it as a HTML page within Static Pages.
    What could be the issue?

    Thanks a lot for the tips.
  • Picture of Arief Arfiansyah
    Thu, Jul 30, 2020, 7:52 PM
    Hello Developer team,
    Is it possible to create require login on specific custom static pages ?
1 2 3 4 5 6 7 8 9 10 11 12 13 14
Please login to post comments