Moodle plugins directory: Static Pages | Moodle.org
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.
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.
if you look at the README of the plugin (https://github.com/moodleuulm/moodle-local_staticpage/blob/master/README.md), 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?
Thanks,
Alex
One brief question.
I've tried to use HTML anchors like in this page:
http://stackoverflow.com/questions/484719/html-anchors-with-name-or-id
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.
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 moodle.org)
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.
Thanks,
Alex
How can I switch the HTML cleaning function off?
Thanks again.
Regards.
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.
Thanks,
Alex
Thanks
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.
Thanks,
Alex
I am really sorry but I don't understand your question. Could you please elaborate on what you want to achieve?
Thanks,
Alex
I created an html page on word. While my static page opens up, however, the images in the page do not load. Any idea how I can resolve this? Thank you.
If you look at https://github.com/moodleuulm/moodle-local_staticpage/blob/master/README.md, you will read:
"If you want to include images into your static page, you have to upload them somewhere else. local_staticpage is not capable of hosting / serving image files. Linking to image files, please do yourself a favour and link to them with absolute URLs, not relative URLs."
I think this should answer your question.
Hi Georg,
sorry for the late answer.
Regarding the calendar:
On the one hand, I can't give you really good help how to add this JS calendar to a static page. I can only tell you to make sure that the static page plugin is configured to not clean the static page content because otherwise the JS code you add to a static page might be dropped. Everything else exceeds my time to support this plugin, sorry.
On the other hand, you can't add any PHP code to display the Moodle-internal calendar to a static page, sorry.
Regarding the block placement:
I am not aware which version of the plugin you are using. With the latest version of the plugin (which is the only one we support), it is possible to add a block to a static page and to configure in the block configuration to show the block on static-.html (which means only this page) or static-* (which means all static pages).
Thanks anyway,
Alex