Static Pages icon

Static Pages

Moodle plugin which displays static information pages which exist outside any course, imprint or faq pages for example, complete with Moodle navigation and theme
Price option: Free

Supports Moodle 2.4-5.2 See all versions
Latest release: 2 weeks ago
Installations: 4885
Downloads (last 90 days): 1526

Frankenstyle name: local_staticpage
Local plugins

Comments

Comments are no longer open for new posts. Existing comments remain available to read.

When I add my page, no matter how I style it, it never extends past the half-way point of my page. I need it to stretch the entirety of the page and it will not. I do not understand what is wrong.
Example: https://university.hospicewr.org/local/staticpage/view.php?page=Example
Please help, this is very frustrating as I would like to incorporate more static pages.
Thanks, Kevin
Hi Gunasekar,
I was able to test the plugin on 2.9 and published a 2.9 version (without any new functionality).
Unfortunately, I wasn't able to reproduce your problems. Could you please post the link to the page you have mentioned so that I can have a look at it?
Thanks,
Alex
Doesn't seem to work well on Moodle 2.9.
It shorten's the url and even lists the page all right. But when opened even from a link within moodle it opens with the page's own HTML formatting if any and not with moodle's formatting.
Hi Giacomo,
our internal 2.9 update will be in August and we won't be able to test the
plugin thoroughly until then. Normally, the 2.8 version should work on 2.9
without problems. Please give it a try and report problems back to me if you
encounter any problems.
Thanks,
Alex
Hi Alexander,
will this plugin work with 2.9 or should we wait for a new version?
Thanks, this is a great tool!
Giacomo
Alexander,
Thank you for your reply.
Force Apache mod_rewrite box was unchecked.
Both links were not working.
"http://www.example.com/local/staticpage/view.php?page=sample"
and
"http://www.example.com/static/sample.html".
Then i found the reason,
Because in the Document directory i had "../staticpage", I've changed it to default how it shows under the "Document directory" and the "http://www.example.com/local/staticpage/view.php?page=sample" is working.
Vladimir,
please have a look at the comments above, I have explained basic pitfalls with the plugin several times.
My first question, as always, is if the plugin works without mod_rewrite, i.e. do the URLs containing /local/staticpage/view.php... work?
Alex
In the Document directory shows me that it found the folder, but when i click on the links under the Document list, it gives me 404 Not found.
Any ideas?
Worked perfectly. Thank you!
Hi Ed,
ok, if you can use the plugin without the rewrite rules, then the plugin is basically working and I can only provide limited support from here on because the rewrite problems are too heterogenous to discuss them in detail here...
The Apache error message tells you that it is looking for a file /usr/local/moodle/test.uplearning.nl/html/static and that file does not exist.
If you use the rewrite rule from https://github.com/moodleuulm/moodle-local_staticpage/blob/master/README.md and have built a URL for the static page like http://www.yourmoodle.com/static/faq.html, I would assume that the rewrite rule is _not_ in effect in your webserver because your webserver tells you that it can't find a file called "static" in your webroot - it does _not_ rewrite the URL to /local/staticpage/view.php?page=faq as it should. So, it's no problem of Moodle or the plugin, but of your webserver.
At this point, I would like to ask you to dig into your webserver configuration to see what's going wrong or ask someone who knows your environment better than I.
Thanks,
Alex
Hello Alex,
sorry for not being clear.
When the "Force Apache mod_rewrite" setting is off we can display the static pages.
The error is from the apache log and in the browser there is a message 404 error.
Eddy
Hi Ed,
sorry for the late reply.
I'd like to ask once again as it's not completely clear to me:
- If you turn the "Force Apache mod_rewrite" setting off, can you display a static page in Moodle?
- Where does the "error: File does not exist: /usr/local/moodle/test.uplearning.nl/html/static, referer: https://test.uplearning.nl/admin/settings.php" error message appear? On the Moodle settings page or when you try to open the static page in your browser?
Alex
Hello Alexander
yes. the rest of the plugin works fine. All the documents are added, except for,
The document 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 have tested the rewrite rule at http://htaccess.madewithlove.be/ works fine
Do you have any suggestions??
Thanks in advance
Ed
Hi Ed,
I know from several feedbacks that the rewrite option is not simple to setup and to use.
Does the plugin work without switching the "Force Apache mod_rewrite" setting on?
Alex
Hello Alexander
we have a problem with the plugin. We have installed it accordingly you're documantation Added a rewite rule in the .htaccess file in the html dir.
Options +FollowSymLinks
RewriteEngine On
RewriteRule ^/static/(.*)\.html$ /local/staticpage/view.php?page=$1&%{QUERY_STRING} [L]
When we turn on the option Force Apache mod_rewrite we get an error:
error: File does not exist: /usr/local/moodle/test.uplearning.nl/html/static, referer: https://test.uplearning.nl/admin/settings.php
could you help us solving this problem
kind regards