
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.
Does static page support pages like this one (https://www.dropbox.com/s/ant2d0pku4qvca2/map.html.txt?dl=0)?
Thank you.
at first glance, I see two fundamental problems:
* The HTML document which you have linked does not have head and body tags. This plugin only takes the content from the body tag and shows it on the static page. If there is no body tag, the static page does not show any content.
* The script tags loading additional scripts should be placed inside the head tag in a normal HTML document. But this plugin is build to ignore the content of the head tag, so you would have to place it into the body tag, too.
Additionally, I don't know if the HTML parser this plugin is using might break the inline script and JSON data.
Summing up, static pages are not built to display content like that currently. As an alternative, you could add a page activity to your site's frontpage and drop the HTML code into the Atto editor of this page.
Thanks,
Alex
I don't need a word 'static' in between
Is it possible to create link like this www.name.com/aboutus ?
first of all: This plugin and the support for the plugin is provided on a voluntary basis. Please give us some time get to your question, thanks for your patience.
Regarding your question: In the plugin's README, you can read that the standard page URLs which are created by the plugin look like this: http://www.yourmoodle.com/local/staticpage/view.php?page=[pagename]
If you are able and willing to use mod_rewrite in your Apache webserver (or a similar mechanism depending on your webserver setup), you can rewrite these URLs to pretty URLs. We provide a rewrite rule in the README which will rewrite the URLs to http://www.yourmoodle.com/static/faq.html.
However, it's up to you to create whatever rewrite rule you want. And yes, it is technically possible to create links like www.name.com/aboutus. We just can't provide any support or directions for this goal due to limited resources. You will have to create a rewrite rule yourself or talk to your webserver admin to create it for you.
Thanks,
Alex
fred sayler
RewriteRule ^static/(.*)\.html$ /local/staticpage/view.php?page=$1&%{QUERY_STRING} [L]
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.
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
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