
General plugins (Local): Static Pages
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.
location /static {
rewrite ^/static/(.*)\.html$ /local/staticpage/view.php?page=$1&$query_string last;
}
Thanks again.
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.
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.
i am trying to embed a video from youtube but it doesnt seem to play any ideas?
I could put in my site but can't embed videos
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
You may choose NO here in settings>> Clean HTML code
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.
Is it possible to create require login on specific custom static pages ?
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.
" 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.
Thanks a lot!