Static Pages

General plugins (Local) ::: local_staticpage
Maintained by Logo "Moodle an Hochschulen e.V."Moodle an Hochschulen e.V., Alexander Bias
Moodle plugin which displays static information pages which exist outside any course, imprint or faq pages for example, complete with Moodle navigation and theme
Latest release:
3937 sites
1k downloads
178 fans
Current versions available: 18

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.

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.

Screenshots

Screenshot #0

Contributors

Logo "Moodle an Hochschulen e.V."
Moodle an Hochschulen e.V. (Lead maintainer): Maintainer
Alexander Bias: Maintainer
Ulm University: Initial Maintainer
Kathrin Osswald: Developer
Please login to view contributors details and/or to contact them

Comments RSS

Comments

  • Fri, Mar 4, 2016, 9:00 PM
    Hi guys,
    After reading README, I'm really confused; I don't know what to do. Can I get it right? Install the plugin like any other plugin to folder
    /local/staticpage, then create html file called faq.html for example and upload it to /local/staticpage. Why in README it says: "The document directory /var/www/files/moodledata/staticpage contains the files foo.bar and faq.html". I'm really confused. Is anyone kind enough to instruct me step by step? I know I'm wrong (wrong configuration) because it says; "The document directory doesn't exist, therefore there are no static pages to be delivered." but I don't know which step I'm wrong?
    Many thanks in advance,
  • Sat, Mar 5, 2016, 2:46 AM
    Phuong,

    there was a multitude of questions like yours in the past about our plugin.

    With the release of the plugin for Moodle 3.0, we changed the way the plugin works - away from a filesystem based storage in Moodledata to a filearea which can be filled in the Moodle GUI. This change should solve most of the obstacles users were facing.

    Now your question is targeted at the older versions of the plugin which we cannot support anymore. Please check out the version for Moodle 3.0. If you don't have Moodle 3.0 yet, you can remove the line starting with $plugin->requires from version.php and install it in legacy versions at your own risk.

    Thanks,
    Alex
  • Sat, Mar 5, 2016, 12:18 PM
    Hi Alex,
    Thanks for your reply. I'm using moodle 2.9.4+, not quite old version. I don't upgrade to moodle 3 because my favorite plugins aren't supported in moodle 3. So how can I install your plugin in moodle 2.9? Just remove the line starting with $plugin->requires from version.php?
    With kind regards,
  • Sun, Mar 6, 2016, 4:09 PM
    Hi Phuong,

    > So how can I install your plugin in moodle 2.9? Just remove the line starting with $plugin->requires from version.php?

    Yes, I already said that above smile
    But note that you do this at your own risk. I think the Moodle 3.0 version will run well on Moodle 2.9, but I won't guarantee anything.

    Thanks,
    Alex
  • Thu, Mar 10, 2016, 10:00 AM
    Thanks for your reply and instruction. I'll install this plugin when upgrading moodle 3 in the future.
  • Fri, Mar 18, 2016, 5:38 PM
    Firstly, I am new to Moodle, so my question may be a bit stupid smile. I am using Moodle 3.0 and installed this plugin (Release v3.0-r2) and add pages like aboutus.html, contact.html and faq.html as instructed.

    I am hopeful that I will be able to get the link like this www.mydomain/static/aboutus.html. BUT I got page error. Did I missed out something? What will be my url?
  • Mon, Mar 21, 2016, 2:33 PM
    Hi Kaluan,

    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
  • Fri, Mar 25, 2016, 11:50 PM
    Hi Alex,
    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,
  • Tue, Mar 29, 2016, 2:00 AM
    Hi, first of all, thanks for you work. That plugin is amazing!
    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.
  • Tue, Mar 29, 2016, 3:41 AM
    Phuong,

    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
  • Tue, Mar 29, 2016, 4:17 PM
    Hi 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.
  • Tue, Mar 29, 2016, 7:42 PM
    With due respects, I relate to Phuong's comment. I ended up doing a manual install - but frankly gave up as things still did not seem to work. I really like the idea of static pages and think it is an excellent plug in for Moodle - hoping in future to see better documentation.
  • Tue, Mar 29, 2016, 9:17 PM
    Hi Tom, hi Phuong,

    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
  • Tue, Mar 29, 2016, 10:34 PM
    Thank you! It worked for me. And if it helps somebody else, I'll explain what I did to change /static/ url to what I wanted. As you said, I changed all the mentions to /static/ on view.php, placed in /local/static/ to what I wanted. In my case, /paginas/. Then I only had to do the properly to the .htaccess, and change to :

    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.
  • Mon, May 16, 2016, 4:48 PM
    Hello, firstly thank you for the plugin, its very useful, however I'm having one problem, I've uploaded the html pages using the browser uploader, but can't find them when I ftp into my server, could you advise where the folder is? Thanks
Please login to post comments