General plugins (Local): Static Pages

local_staticpage
Maintained by Picture of Ulm University Ulm University, Picture of Alexander Bias Alexander Bias
Moodle plugin which displays information pages which exist outside any course, imprint or faq pages for example, complete with Moodle navigation and theme
1079 sites
1k downloads
62 fans

The local_staticpage plugin is designed to fetch a static HTML document from disk, enrich it with Moodle navigation and theme and deliver it as a standard Moodle page which exists 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 the local_staticpages plugin, you can create information pages within moodle, but without misusing a whole course just for showing a textbox.

See README file for details.

Screenshots

Screenshot #0

Contributors

Picture of Ulm University
Ulm University (Lead maintainer)
Picture of Alexander Bias
Alexander Bias: Developer
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Picture of Alexander Bias
    Wed, 19 Oct 2016, 6:46 PM
    Hi all,

    sorry for the late replies again.


    Georg,
    I wrote you a personal message.


    Rama,
    from my point of view, you are free to add whatever you want to the .html file as long as its valid HTML (with JS embedded if necessary). Just give it a try. I am sorry that further support is out of scope of our work for this plugin.


    Ondine,
    Have you read https://github.com/moodleuulm/moodle-local_staticpage/blob/master/README.md ?
    Basically, the static page should appear on (following your example) mysite/mymoodlefolder/local/staticpage/view.php?page=myfile.
    The clean URL will only work if you have configured your webserver to rewrite the URLs.

    Thanks,
    Alex
  • Picture of Hans Bos
    Thu, 20 Oct 2016, 6:42 PM
    Hi Alex,
    I had a problem finding my HTML pages (on Moodle 3.1.x)
    I've used you example path: mysite/mymoodlefolder/local/staticpage/view.php?page=myfile.
    It turned out that I had to skip the HTML extension and use 'myfile' instead of 'myfile.html'.
    Think it could be useful to make a remark of it in you read-me file not to use html in the path to the file.
    Thanks.
    Hans.
  • Picture of Chaits Kul
    Sat, 3 Dec 2016, 2:51 PM
    Hi Alex,

    How do I install this manually on local drive? Do I upload the "staticpage" folder to /mod/ directory or somewhere else?
    Currently when I upload it to mod directory, it shows - "Plugins requiring attention" with the details in the screenshot here - http://imgur.com/xRj0EQ6

    Thanks
  • Picture of Alexander Bias
    Sun, 4 Dec 2016, 4:42 AM
    Hi Chaits,

    well, if you had read https://github.com/moodleuulm/moodle-local_staticpage/blob/master/README.md#installation, you would know where to install the plugin...

    Thanks,
    Alex
  • Picture of marwa bekrar
    Tue, 6 Dec 2016, 8:10 PM
    Hi Alexander,

    Can you answer my question here please : https://moodle.org/mod/forum/discuss.php?d=343877#p1386922

    I really need your help
  • Picture of Chaits Kul
    Thu, 8 Dec 2016, 9:12 PM
    Hi Alex,

    Sorry about that. However when I upload it to the right folder too I get the same message as in the screenshot here - http://imgur.com/xRj0EQ6
    Is there a work around for version difference?

    Thanks
  • Picture of Alexander Bias
    Thu, 8 Dec 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
  • Picture of Chaits Kul
    Sun, 11 Dec 2016, 6:11 PM
    Hi Alex,

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

    Thanks
  • Picture of Alexander Bias
    Mon, 12 Dec 2016, 3:25 PM
    Hi Chaits,

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

    Thanks,
    Alex
  • Picture of Milciades Ramirez
    Tue, 24 Jan 2017, 1:27 AM
    Excellent plugin... I want to know if is possible to insert a video into html static page?
  • Picture of Alexander Bias
    Tue, 24 Jan 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
  • Picture of Nikola Ivanovic
    Mon, 6 Feb 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
  • Picture of Alexander Bias
    Mon, 6 Feb 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
  • Picture of Eden Caplan
    Thu, 9 Feb 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!
  • Picture of Alexander Bias
    Thu, 9 Feb 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
1 2 3 4 5 6 7 8 9 10 11 12
Please login to post comments