Static Pages

General plugins (Local) ::: local_staticpage
Maintained by Ulm University, Alexander Bias, Kathrin 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
Latest release:
3843 sites
1k downloads
170 fans
Current versions available: 17

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

Screenshots

Screenshot #0

Contributors

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

Comments RSS

Show comments
  • 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?
  • 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?
  • Fri, Sep 27, 2019, 7:43 PM
    great work, thanks
    I could put in my site but can't embed videos

  • Sat, Dec 14, 2019, 1:33 PM
    Great post. Thanks for the information.
  • Mon, Jan 13, 2020, 1:41 AM
    Thank for sharing information
  • 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
  • Fri, Apr 24, 2020, 7:25 PM
    @decalaveras deesqueletos ,Héctor Lizarraga
    You may choose NO here in settings>> Clean HTML code

  • 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.
  • Thu, Jul 30, 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, Sep 14, 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.
  • Thu, Dec 3, 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.
  • Tue, Dec 15, 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!
  • Thu, Aug 19, 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?
  • Mon, Sep 13, 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
1 2 3 4 5 6 7 8 9 10 11 12 13 14
Please login to post comments