Static Pages
Maintained by
Alexander Bias, Moodle an Hochschulen e.V.
Moodle plugin which displays static information pages which exist outside any course, imprint or faq pages for example, complete with Moodle navigation and theme
Comments
Comments are no longer open for new posts. Existing comments remain available to read.
fred sayler
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
I don't need a word 'static' in between
Is it possible to create link like this www.name.com/aboutus ?
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
Does static page support pages like this one (https://www.dropbox.com/s/ant2d0pku4qvca2/map.html.txt?dl=0)?
Thank you.
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
> 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
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!
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