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:
4557 sites
3k downloads
214 fans
Current versions available: 22

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 http://www.yourmoodle.com/static/faq.html 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.

Screenshots

Screenshot #0

Contributors

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

Comments RSS

Show comments
  • Raj Awasthi
    Mon, 13 Jan 2020, 1:41 AM
    Thank for sharing information
  • Héctor Lizarraga
    Mon, 30 Mar 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
  • Sreejith M
    Fri, 24 Apr 2020, 7:25 PM
    @decalaveras deesqueletos ,Héctor Lizarraga
    You may choose NO here in settings>> Clean HTML code

  • Balazs DaVinci
    Tue, 16 Jun 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.
  • Arief Arfiansyah
    Thu, 30 Jul 2020, 7:52 PM
    Hello Developer team,
    Is it possible to create require login on specific custom static pages ?
  • A Coloradian who was sucked into facebook against his wishes
    Mon, 14 Sep 2020, 3:22 AM
    I am having the exact same issue as Balazs DaVinci.
    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
    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.
  • Matteo Benedetti
    Thu, 3 Dec 2020, 10:27 PM
    Hello i have the issue with the plugin after uploading the html file of the page i get this error :

    " The following document file was found:
    contact.html

    From the document file's filename, Moodle derived the following pagename:
    contact

    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 due to a non-2xx HTTP status code (perhaps there is something wrong with your webserver or mod_rewrite configuration - see README file for details):
    Not available - Non-2xx https://domaine.com/static/contact.html "

    I have tried to add the htaccess code as said in the README.md but it still don't work.
  • Leslie Huang
    Tue, 15 Dec 2020, 3:29 AM
    Hi! I am trying to understand this plugin better: where are the html files actually stored, or how to specify the location to store those html files for the static pages?
    Thanks a lot!
  • Ebenezer Bobson
    Thu, 19 Aug 2021, 8:37 PM
    Hi, am new to this. Could anyone help me set this right please? "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 due to a non-2xx HTTP status code (perhaps there is something wrong with your webserver or mod_rewrite configuration - see README file for details):
    Not available - Non-2xx"

    I created a word document with text and images and saved it as .htm and uploaded it into Static Pages document. All other settings were as recommended. However, this is the error. How do I correct this?
  • MIster x
    Mon, 13 Sep 2021, 3:35 AM
    i finally got the solution (clean URL )
    1 - log in to your cpanel >>filemanager>> 2- type in the search box ".htaccess"
    3 - dont forget to show hiden files from settings gear in top right
    4- many result appears : choose the one that contain public_html
    5- entre where the file is & select it & edit it
    6- add the code in buttom
    RewriteEngine On
    RewriteRule ^static/(.*)\.html$ /local/staticpage/view.php?page=$1&%{QUERY_STRING} [L]
    and that is it
    this worked for me centos
    hope this help someone
  • Samit Puri
    Wed, 15 Jun 2022, 10:23 AM
    When can we get this plugin for moodle V4 ? Any idea?
  • Minh Pham
    Fri, 9 Sep 2022, 5:34 PM
    regarding the htaccess, mine is a little bit different from the doc on github:

    RewriteEngine On
    RewriteRule ^static/(.*)\.html$ local/staticpage/view.php?page=$1&%{QUERY_STRING} [L]

    Notice the missing slash before local/staticpage
  • seaghan moriarty
    Thu, 16 Feb 2023, 10:19 PM
    Hi Alexander & team,

    To help people who are considering upgrading to the Long Term Moodle version 4.1

    Can you share if you have either plans or a timeline yet for this wonderful plugin to suit Moodle 4.1?

    Thank you for all your work
  • Igor Makigi
    Tue, 29 Aug 2023, 4:24 AM
    Hello, i have problem with blocks on static pages. When i put block on any static page,i have three, block appears on all of them, when hide on one of them again isnt visible on all pages. What could be the problem? Thank you in advance.
1 2 3 4 5 6 7 8 9 10 11 12 13 14
Please login to post comments