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): 1472

Frankenstyle name: local_staticpage
Local plugins

Comments

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

Hello Alexander; I had sent a message to your link. Maybe I should have posted here?
fred sayler
Thank you very much for explanations! Very useful!
Hi Olga,
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
Please, can anyone explain me why do we need the word static in the URL? My users don't care about it
I need pages "about us" "contact" and so on, but I don't understand why you say that links will be like this http://www.yourmoodle.com/static/faq.html
I don't need a word 'static' in between
Is it possible to create link like this www.name.com/aboutus ?
Alex, thanks a lot.
Hi Mitja,
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
Hi, I would like to use d3plus page (https://d3plus.org/examples/) in moodle, but moodle shows nothing as a static page, though it shows fine as a html (http://www2.fu.uni-lj.si/map.html).
Does static page support pages like this one (https://www.dropbox.com/s/ant2d0pku4qvca2/map.html.txt?dl=0)?
Thank you.
Thanks. I have installed on moodle 3.2 with Essential these. It works like a charm. Thank you Alexander for making my job easy.
Thank you Alex very much
Ahmed, please have a look at https://github.com/moodleuulm/moodle-local_staticpage/issues/16 for an explanation and solution
Hello
When I uploaded html there is a strange line appears on its top which is:
YPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
How can I get rid off this line?
I am using Moodle 3.2 with Eduhub theme
Hi Eden,
> 1. whem I'm uploading the HTML file, it appears on top of the theme and overrides it. (theme is Eguru)
I don't fully understand what you are telling me but it somehow sounds as if you try to upload the HTML file with drag and drop and this does not work.
Please create a ticket with screenshots on https://github.com/moodleuulm/moodle-local_staticpage/issues if this problem persists.
> 2. In the description itsays that there is a section that shows the list of URLs I created. and I don't have it.
it's in section 3 of thr read-me link.
This feature was there up to the 2.9 version of the plugin and came back in the 3.2 version. If you are using Moodle 3.1 with the 3.1 version of the plugin, you don't have this feature.
But you can get the latest version from https://github.com/moodleuulm/moodle-local_staticpage, remove the $plugin->requires line from version.php and use this 3.2 version on Moodle 3.1 at your own risk.
Thanks,
Alex
HI Alex,
I have moodle 3.1.2+, and I'm trying to use your plugin.
I have to issues-
1. whem I'm uploading the HTML file, it appears on top of the theme and overrides it. (theme is Eguru)
2. In the description itsays that there is a section that shows the list of URLs I created. and I don't have it.
it's in section 3 of thr read-me link.
Is there anyway you can help me solve these problems?
Thanks!
Hi Nikola,
could you please create a ticket on https://github.com/moodleuulm/moodle-local_staticpage/issues, describing your problem with some screenshots or URLs as well as your exact value of $CFG->custommenuitems which you set on /admin/settings.php?section=themesettings ?
We can discuss your problem in detail to see if its a problem in the plugin or not.
Thanks,
Alex