Static Pages

Local plugins ::: 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:
4895 sites
2k downloads
230 fans
Current versions available: 25

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

Comments

  • Fred Sayler
    Hor, 23 Mahu 2017, 2:20 AM
    Hello Alexander; I had sent a message to your link. Maybe I should have posted here?
    fred sayler
  • Harley Dangan
    Tū, 13 Hui 2018, 3:04 PM
    Hi Alexander. The static pages open in a new tab. Is there a way to make them open in the same tab? Or do I need to edit some PHP code? Thanks!
  • Jeremy Britton
    Apa, 7 Pou 2018, 7:09 AM
    I was having trouble with the mod_rewrite rule provided in the instructions and found that I need to remove the first slash(/) to get it to work.
    RewriteRule ^static/(.*)\.html$ /local/staticpage/view.php?page=$1&%{QUERY_STRING} [L]
  • Alex Ferrer
    Mer, 9 Pou 2018, 6:12 PM
    Hi Alexander.
    Could it be that there is some incompatibility of the plugin with Bootstrap? I have read in the Readme file that it should work but, for example, the buttons are not displayed.
    Thanks.
  • Rob Jackson
    Hor, 10 Pou 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:
    Available http://www.mysite.eu/courses/local/staticpage/view.php?page=faq

    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.

    Rob
  • Rob Lowney
    Mer, 13 Pae 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
    Rob
  • Kashyap Kr
    Hor, 14 Hōngo 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.
  • ZOINIA MEDIA
    Tū, 9 Nuku 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.
  • Marcos Barrera
    Hin, 26 Rangi 2018, 11:06 PM
    Hello!
    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" "http://www.w3.org/TR/html4/strict.dtd">

    Do you know what I am doing wrong?

    Thanks.
  • Stefano Guglielmetti
    Tū, 12 Pou 2019, 4:12 PM
    Hello!
    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" "http://www.w3.org/TR/REC-html40/loose.dtd""
    I saw this issue(https://github.com/moodleuulm/moodle-local_staticpage/issues/16), 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?

    Thanks.
  • Spike Santee
    Hor, 6 Pae 2019, 2:27 AM
    Anyone have any experience with getting a clean URL from a Moodle installation in the Google Cloud platform?
  • Nikos Sfakianakis
    Par, 11 Hōngo 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?
  • decalaveras deesqueletos
    Mer, 27 Mahu 2019, 7:43 PM
    great work, thanks
    I could put in my site but can't embed videos

  • Somesh Mishra
    Hor, 14 Haki 2019, 1:33 PM
    Great post. Thanks for the information.
  • Raj Awasthi
    Hin, 13 Kohi 2020, 1:41 AM
    Thank for sharing information
Please login to post comments