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
179 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


  • Tue, May 17, 2016, 2:43 PM
    Hi Daniel,

    with the 3.0 version of this plugin, we are using a filearea in Moodle for storing the files instead of the previously used directory on disk. Thus, Moodle buries your files somewhere below the /filedir directory on disk like it does for all other files you are uploading in Moodle (e.g. in a course).

    Perhaps can help you finding your file if you need to identify it on disk.

  • Sun, May 22, 2016, 12:11 AM
    Hi guys,
    Simple question:

    How can we insert and run PHP codes into a page?
    It's very important and useful.

    Thank you so much,
  • Sun, May 22, 2016, 3:45 AM
    Hi Israel,

    simple answer: No, local_staticpage does not process PHP code and we also won't add this feature because of strong security concerns. If you need to run PHP code in a single page, you should create your own plugin. It's easier as you may think.

  • Thu, Jun 9, 2016, 3:04 AM
    I have used this plugin for two or three pages. However, as far as telling specific blocks to only show on specific pages, it ignores such rules and adds any blocks that are added to any static page to every other static page. If you configure the block to not show on any of the static pages, it applies same argument/rule to all the other static pages. For you're info, these are the pages I'm referring:

    suggestions? I would rather have the dev help before I hack it to pieces to find a work around. Thanks in advance smile
  • Thu, Jun 9, 2016, 3:10 AM
    Just realized I could offer what I think is the problem. When you add a block to static pages, it by default adds it as system(shows "Orignial Block Location" as System) This is nonconfigurable after the block is added. Thx
  • Thu, Jun 9, 2016, 6:32 PM
    Hi William,

    if you look at the README of the plugin (, you will see that there is basic support for blocks, but that the plugin was not intended to show blocks on the static pages.

    I don't understand what your latest status is - did you achieve your goal or not?

  • Tue, Jun 21, 2016, 2:05 AM
    One brief question.

    I've tried to use HTML anchors like in this page:

    I've used the HTML5 way to do it, but it doesn't work in Static Pages.

    Is html blocked on this plugin or something like that? Sorry for my inexperience.

    Best regards.
  • Tue, Jun 21, 2016, 9:29 PM
    Hi Abel,

    basically, you should be able to define an anchor with something like
    h3 id="foo" (I removed the brackets from the tags for styling reasons here on
    and link to it with
    a href="#foo"

    But this does not work if you have the plugin's setting local_staticpage | cleanhtml = On. Then a HTML cleaning function is used which drops the ID attribute. If you switch this off, you should be fine.

  • Tue, Jun 21, 2016, 10:17 PM
    Aha, I understand. Thanks for your fast answer.
    How can I switch the HTML cleaning function off?
    Thanks again.
  • Wed, Jun 22, 2016, 3:13 AM
    Hi Abel,

    please go to /admin/settings.php?section=staticpage and change the setting there.
    Please also note that the setting is only there in the 3.0 version of the plugin.

  • Wed, Jul 27, 2016, 8:15 AM
    Alex, I have just used version 3.x and found few things have changed, besides file up loader rather than giving a path (both have their advantages) one thing I really missed is where in previous versions it use to list all the found files and give paths to be used making it easy for users to copy/paste paths, whilst this is not he case now,if not automated path, can you type in static text in plug-in settings how may a URL would look like.
  • Thu, Jul 28, 2016, 10:31 AM
    I have installed the plugin and added an htaccess file to my moodle installation folder with the specified changes. I upload a plain html file using the example code provided in the readme. I am getting a 404 error no matter what I try. Any suggestions? Thanks
  • Mon, Aug 1, 2016, 5:16 AM
    Hi Usman,

    thanks for your feedback.
    I have removed the list of the found files in the course of changing the place where the HTML files are saved from a directory on disk to a filearea in Moodle itself. I just wanted to get rid of problematic stuff and storing the files in a directory as well as the list of files produced most support requests in the last years.
    But you're right, there should be a note at which URL the static files can be found and I will add this to the next minor release.

    Hi MTECH,

    I am sorry, but I can't help you with that few information about your problem. If you submit detailed information about your setup, I will do my best to help you.

  • Wed, Aug 24, 2016, 12:17 AM
    Wonderful plugin. Thanks. Is there a way to hide the URL and just go directly to the link?
  • Wed, Aug 24, 2016, 4:59 PM
    Hi Marc,

    I am really sorry but I don't understand your question. Could you please elaborate on what you want to achieve?

Please login to post comments