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


  • Sun, Jul 12, 2015, 5:04 PM
    Thank you for your reply.

    Force Apache mod_rewrite box was unchecked.
    Both links were not working.

    Then i found the reason,
    Because in the Document directory i had "../staticpage", I've changed it to default how it shows under the "Document directory" and the "" is working.
  • Mon, Jul 27, 2015, 8:30 PM
    Hi Alexander,

    will this plugin work with 2.9 or should we wait for a new version?

    Thanks, this is a great tool!

  • Mon, Jul 27, 2015, 8:32 PM
    Hi Giacomo,

    our internal 2.9 update will be in August and we won't be able to test the
    plugin thoroughly until then. Normally, the 2.8 version should work on 2.9
    without problems. Please give it a try and report problems back to me if you
    encounter any problems.

  • Wed, Aug 5, 2015, 4:54 AM
    Doesn't seem to work well on Moodle 2.9.
    It shorten's the url and even lists the page all right. But when opened even from a link within moodle it opens with the page's own HTML formatting if any and not with moodle's formatting.
  • Sat, Aug 22, 2015, 5:31 AM
    Hi Gunasekar,

    I was able to test the plugin on 2.9 and published a 2.9 version (without any new functionality).

    Unfortunately, I wasn't able to reproduce your problems. Could you please post the link to the page you have mentioned so that I can have a look at it?

  • Thu, Sep 3, 2015, 1:44 AM
    When I add my page, no matter how I style it, it never extends past the half-way point of my page. I need it to stretch the entirety of the page and it will not. I do not understand what is wrong.


    Please help, this is very frustrating as I would like to incorporate more static pages.

    Thanks, Kevin
  • Fri, Sep 4, 2015, 5:37 PM
    Hi Kevin,

    I dare to say that this is a problem of your theme or HTML file and not of the plugin.

    local_staticpages just dumps the content of your HTML files into the region-main div container of your theme. If I look at your HTML code of the page you have linked, the region-main is bigger than the widths actually filled with the static content. Within the region-main div container, the content is narrowed by additional bootstrap markup and CSS styles.

    Please double check that your theme and HTML files are not the root of this problem. Please also change your theme to theme_clean for an additional test how a static page could look like in your installation with a different theme.

    If the problem persists, please create a ticket in

  • Fri, Sep 11, 2015, 8:38 PM
    It works perfectly, even changing the folder that contains the pages, resources and styles.
    Great job!
  • myname
    Tue, Oct 20, 2015, 5:03 PM
    it is great help.
    I have question about multi language page. our site support 2 languages and I write html file that use lang attribute, but it does not work and always shows english language. if user change the language of site, it does not change. is there specific setting for 2 language page

  • Tue, Oct 20, 2015, 5:07 PM
    There is multilanguage support, but not with the Moodle multilanguage tags / filter.

    Please have a look at -> Multilanguage support section and check if this fits your needs.
  • myname
    Wed, Oct 21, 2015, 7:03 PM
    thank you for reply and for readme link it is helpful, I found this section which describes what I need exactly
    "If you want to serve static pages which are translated into multiple languages and which should be switchable with the Moodle language switcher, you are welcome to create symbolic links in your document directory. This has been tested on Unix-like servers, see for details." but I don't understand the solution
    however your plugin is great
  • Thu, Oct 22, 2015, 3:02 PM
    Well, I think the README explains it already quite well, but let me rephrase the explanation:

    If you create a static page document foo.html, this document can be viewed on /static/foo.html regardless of the language of the Moodle user.
    If you create a static page document foo.en.html, this document can be viewed on /static/foo.html, but does only display for users who are using Moodle with english language.

    If you want to create a static page /static/foo.html which will display texts in english and in german, you have to create a file foo.en.html with english content and a file with german content. In this case, the Moodle language switcher will also work. I think that's what you need.

    The stuff with the symbolic links is only needed if you want to have static pages /static/foo.html serving content in english and /static/bar.html serving the same content in german - while being able to simply link to this static page with /static/foo.html and having the language switcher still working.

  • myname
    Thu, Oct 22, 2015, 4:20 PM
    when I just use one file ( FAQ.html ) it works, for translation I understand how to do it now ( thanks for your rephrase )
    I did try it and have problem, when file saved as FAQ.en.html , I recieve error that file not found "The requested URL /lms/static/FAQ.eng.html was not found on this server." when I click on url the plugn provides
    thanks again
  • Thu, Oct 22, 2015, 4:22 PM
    Even if you have created a file FAQ.en.html, you just like to it with /static/FAQ.html. Have you tried that?
  • myname
    Thu, Oct 22, 2015, 6:22 PM
    same error with FAQ.html "The requested URL /lms/static/FAQ.html was not found on this server."
Please login to post comments