Your Moodle version

General plugins (Local): Static Pages

local_staticpage
Maintained by Picture of University of Ulm University of Ulm, 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
10k
10

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

Contributors

Picture of University of Ulm
University of Ulm (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 Ricardo Ferreira
    Mon, Jul 7, 2014, 8:22 AM
    Hello,
    I'm with the following problem:

    Your plugin work greatly at the link:
    /local/staticpage/view.php?page=quemsou

    But at:
    /static/quemsou.html - show 404 error.

    I tried to activate at .htacess

    deny from allAllowOverride NoneNote: this file is broken intentionally, we do not want anybody to undo it in subdirectory!
    RewriteEngine On
    RewriteRule ^/moodle/(.*)\.html$ /moodle/local/staticpage/view.php?page=$1&%{QUERY_STRING} [L]

    And i tried to select the option ( Force Apache mod_rewrite ) at configuration page of your plugin. and it still showing 404 error.

    Do you have any ideia, how can i fix this?

    PS: Will be great if i be able to chage the structure os url, from: /static/quemsou.html to: /mytextinportuguese/quemsou.html - Bcz im brazillian and all my clients speaks portuguese.
  • Picture of Alexander Bias
    Mon, Jul 7, 2014, 4:07 PM
    Ricardo,

    I'm sorry, but I don't understand what you did in your htaccess file. As the plugin is working on the standard URL and you are breaking things intentionally, please talk to your webserver adminstrator how you can make things work.

    The rewrite rule simply maps /static/* URLs to the plugin's standard URL. So, you can use any URL part you like instead of "static" and map it to the plugin's standard URL. Again, your webserver administrator should know how to make things work.

    Alex
  • Picture of Jason Mallet
    Thu, Jul 24, 2014, 3:56 PM
    First, I want to thank you for making this plugin as it is extremely helpful for my site.

    I only have one issue. We use a lot of css on our site, but on the static pages we cannot use any external or internal css! We have to use in-line for everything, and it's extremely frustrating and time-consuming. Is there a way to be able to use internal (we prefer internal) css markups on static pages? If so, could you point me to a detailed method of how to do so?

    Thanks!
  • Picture of Alexander Bias
    Fri, Jul 25, 2014, 4:06 PM
    Jason,

    I'm afraid, the parser which reads the HTML file drops style tags which are placed in the head at the moment.

    However, your request is reasonable. I will check if I can allow style tags in the head tag in the next version. This will take some time, please have a look at the release notes of the next version.

    Until then, you could place the style tag in the body.

    Please note that this is neither valid HTML 4 code nor valid HTML5 code according to my knowledge.
    But I think most browsers will render the styles, at least Chrome/Mac and Firefox/Mac do.

    Alex
  • Picture of Jason Mallet
    Wed, Jul 30, 2014, 7:29 PM
    Alexander,

    That worked great! Thank you! I never even thought to put the style tag in the body.
  • Picture of Dharmendra Pundir
    Tue, Aug 5, 2014, 5:01 PM
    Hi,

    I am new with moodle and developing a wesite in moodle 2.7.1. I have installed the local_staticpage plugin. Can you please help me where i need to create the faq.html file, so it can appear in the static page setting page?
  • Picture of Alexander Bias
    Thu, Aug 14, 2014, 4:44 PM
    Dear Dharmendra,

    honestly, local_staticpage is nothing you should start with when you start learning and working with Moodle. Using this plugin is somehow difficult as all of the comments above will show you. Also, local_staticpage is _no_ tool to make a complete Content Management System out of Moodle.

    That being said, if you want to use local_staticpage, please start with reading and following the README file (https://raw.githubusercontent.com/moodleuulm/moodle-local_staticpage/master/README.md). If you have concrete questions, I will try my best to answer them.

    Alex
  • Picture of Richard Manigault
    Fri, Aug 22, 2014, 10:52 PM
    Hi,
    I've been trying to setup 2-3 static pages for my site. The plugin is installed correctly Mod_rewrite is fully enabled, page was created using html. Permissions have been changed.

    I get this message in local staticpages>
    From the document file's filename, Moodle derived the following pagename:
    contact

    The document is available and can be linked to at the following URL:
    https://mysite.com/academy/local/staticpage/view.php?page=contact

    The document should be available to at the following clean URL, but actually a browser won't be able to download and view it (perhaps there is something wrong with your webserver or mod_rewrite configuration - see README file for details):
    https://mysite/academy/static/contact.html

    My hosting has also looked into the problem, do you have any suggestions?

    Thanks,
  • Picture of Alexander Bias
    Sat, Aug 23, 2014, 1:35 AM
    Richard,

    please look above at the comment from Darrel Tenter from Nov 2013. He posted two slightly different rewrite rules which might work for Moodle installations in subdirs.

    Alex
  • Picture of Alexander Bias
    Sat, Aug 23, 2014, 1:35 AM
    Richard,

    please look above at the comment from Darrel Tenter from Nov 2013. He posted two slightly different rewrite rules which might work for Moodle installations in subdirs.

    Alex
  • Picture of Richard Manigault
    Sat, Aug 23, 2014, 6:35 AM
    Hi Alex,
    Thank you, I have one last question from hosting, is the mod compatible with 2.7 ?
  • Picture of Alexander Bias
    Sat, Aug 23, 2014, 1:12 PM
    Richard,

    did it work?
    Could you please post the working RewriteRule here so I can add it to the README file?

    The current module version works with 2.7. The dedicated 2.7 version will be posted within the next days to the Plugin repository.

    Alex
  • Picture of Alexander Bias
    Sat, Aug 23, 2014, 1:12 PM
    Richard,

    did it work?
    Could you please post the working RewriteRule here so I can add it to the README file?

    The current module version works with 2.7. The dedicated 2.7 version will be posted within the next days to the Plugin repository.

    Alex
  • Just wondering . . .
    Wed, Nov 5, 2014, 8:27 AM
    I'm unclear from here if you need to have your own access to the server maybe via FTP to set up the pages.
    -Derek
  • Picture of Alexander Bias
    Wed, Nov 5, 2014, 2:50 PM
    Derek,

    yes, at the moment you have to be able to upload the static page files directly to a directory on your server. If you don't have direct access to the files on your server, you won't be able to use this plugin.

    There's a plan on our roadmap to support in-browser uploads for static page files. But it has no priority...

    Alex
1 2 3 4 5 6
Please login to post comments