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.
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
http://pmnerds.com/local/staticpage/view.php?page=gv
http://pmnerds.com/local/staticpage/view.php?page=volunteer
suggestions? I would rather have the dev help before I hack it to pieces to find a work around. Thanks in advance
simple answer: No, local_staticpage does not process PHP code and we also won't add this feature because of strong security concerns. If you need to run PHP code in a single page, you should create your own plugin. It's easier as you may think.
Thanks,
Alex
Simple question:
How can we insert and run PHP codes into a page?
It's very important and useful.
Thank you so much,
Israel.
with the 3.0 version of this plugin, we are using a filearea in Moodle for storing the files instead of the previously used directory on disk. Thus, Moodle buries your files somewhere below the /filedir directory on disk like it does for all other files you are uploading in Moodle (e.g. in a course).
Perhaps http://www.nathanfriend.co.uk/find-where-moodle-2-has-put-your-file/ can help you finding your file if you need to identify it on disk.
Thanks,
Alex
RewriteEngine On
RewriteRule ^paginas/(.*)\.html$ /local/staticpage/view.php?page=$1&%{QUERY_STRING} [L]
And voilà, everything fine (even breadcrumbs).
Thanks for your help and for the plugin, Alexander,
Best regards.
thanks for your feedback. I appreciate every improvement to documentation, but as I already know the plugin, I need to know where you failed when you tried to bring it into production.
As I said above, there is already an extensive Readme on https://github.com/moodleuulm/moodle-local_staticpage/blob/master/README.md. The content of the Readme is not available directly here in the plugin repo page because it changes from release to release, but it is linked with the "More documentation on this plugin" link.
So, if you tell me where you failed or what you did not understand in the Readme, I can try to improve it.
Thanks,
Alex
I miss nothing. I'm only afraid that someone would like to install your plugin, they can't imagine how it works, especially uploading documents.
glad I could help and thanks for your feedback for 2.9.x!
Regarding the screenshot, I thought that the Readme was really comprehensive already so that there is no need for a screenshot. What exactly are you missing?
Abel,
you only get the /static/ URLs when you use the (optional) Apache rewrite rules. Basically, in these rules, you can change "static" to whatever you like and the static page should work. You only have to make sure that you did not enable the "apacherewrite" setting of the plugin and you might experience false behaviours of the breadcrumb on the static pages.
If you also want to fix that, you will have to change all occurences of "/static" to "/whateveryoulike" in view.php.
Thanks,
Alex
One single question? Is it posible to change /static/ for other name? I'm spanish and I'd like to put another word.
Thanks in advance.
Regards.
I'm using moodle 2.9.4+ and installed your plugin (Release v3.0-r2). Just remove $plugin->requires from version.php as you said above and it works like a charm. However, I suggest you should add one more screenshot so that everyone can understand how to upload documents.
With kind regards,
a URL like www.mydomain/static/aboutus.html will only work if you have configured Rewrite rules in your webserver, see https://github.com/moodleuulm/moodle-local_staticpage/blob/master/README.md Section "Using mod_rewrite" for details.
If you didn't, your page will bei available on http://www.yourmoodle.com/local/staticpage/view.php?page=[pagename].
Alex