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

  • Thu, Dec 8, 2016, 9:44 PM
    Hi Chaits,

    really? The screenshot says that you have placed the plugin into /mod/staticpage. But you must place it into /local/staticpage. After that, the plugin installation really should work.

    Thanks,
    Alex
  • Sun, Dec 11, 2016, 6:11 PM
    Hi Alex,

    Here is the error even after uploading to /local/staticpage - http://imgur.com/rpgM6zo.

    Thanks
  • Mon, Dec 12, 2016, 3:25 PM
    Hi Chaits,

    well, this looks fine now. Just confirm this dialogue to install the plugin.

    Thanks,
    Alex
  • Tue, Jan 24, 2017, 1:27 AM
    Excellent plugin... I want to know if is possible to insert a video into html static page?
  • Tue, Jan 24, 2017, 5:14 AM
    Hi Milciades,

    thanks for asking.

    Please have a look at https://github.com/moodleuulm/moodle-local_staticpage/blob/master/README.md#adding-images-to-static-pages. Similarly to images, you can't upload any videos to the static pages plugin. But if you host the video externally, for example on YouTube, you can add the embed code to the HTML code of your static page.

    Thanks,
    Alex
  • Mon, Feb 6, 2017, 6:09 PM
    Hi Alexander

    Thanks for plugin, I'm started to work on moodle project and have a problem with "custom menu items" , installed you plugin v3.1-r2 on version 3.1.4 +

    Plugin works , I'm follow read me and everything seems to work. Bug I have "custom menu items" are not listed on any static page I'm open, only two links are listed and generated on correct position "login" and "create new account" . However if I log in and reopen static page , "custom menu items" are there in correct position, visible and work as they should be for any website visitor.

    So user that is not logged in can't see my "custom menu items" links.

    Do you have some idea why that happening, or where to look to fix it ?

    Thanks,
    Nikola
  • Mon, Feb 6, 2017, 8:28 PM
    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
  • Thu, Feb 9, 2017, 10:02 PM
    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!
  • Thu, Feb 9, 2017, 10:29 PM
    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
  • Sun, Apr 2, 2017, 5:14 PM
    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
  • Sun, Apr 2, 2017, 6:08 PM
    Ahmed, please have a look at https://github.com/moodleuulm/moodle-local_staticpage/issues/16 for an explanation and solution
  • Sun, Apr 2, 2017, 8:43 PM
    Thank you Alex very much
  • Wed, Apr 12, 2017, 3:00 AM
    Thanks. I have installed on moodle 3.2 with Essential these. It works like a charm. Thank you Alexander for making my job easy.
  • Fri, Apr 21, 2017, 5:02 PM
    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.
  • Fri, Apr 21, 2017, 5:20 PM
    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
Please login to post comments