moodle-local_staticpage ======================= [![Moodle Plugin CI](https://github.com/moodle-an-hochschulen/moodle-local_staticpage/workflows/Moodle%20Plugin%20CI/badge.svg?branch=master)](https://github.com/moodle-an-hochschulen/moodle-local_staticpage/actions?query=workflow%3A%22Moodle+Plugin+CI%22+branch%3Amaster) Moodle plugin which displays static information pages which exist outside any course, imprint or faq pages for example, complete with Moodle navigation and theme Requirements ------------ This plugin requires Moodle 4.3+ Motivation for this plugin -------------------------- 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. Installation ------------ Install the plugin like any other plugin to folder /local/staticpage See http://docs.moodle.org/en/Installing_plugins for details on installing Moodle plugins Usage & Settings ---------------- After installing the plugin, it does not do anything to Moodle yet. To configure the plugin and its behaviour, please visit: Site administration -> Static Pages. There, you find multiple settings pages: ### 1. Documents On this page, you upload the document files you want to serve as static pages. The filepicker accepts files with .html filename extensions. For each static page you want to serve, upload a HTML document, named as [pagename].html. local_staticpage then uses this filename as pagename. Example: You upload a file named faq.html. This file will be served as static page with the page name "faq". Valid filenames: Please note that not all symbols which are allowed in the filenames in the filepicker are supported / suitable for pagenames. Please make sure that your filenames only contain lowercase alphanumeric characters and the - (hypen) and _ (underscore) symbols. Please note that the filepicker on this settings page does not only allow you to upload .html files but also to upload .htm files due to the way the Moodle filepicker is built internally. local_staticpage does its best to change the suffix of a .htm file to .html after you save the settings page. ### 2. Settings On this page, you can configure several aspects of local_staticpage's behaviour. #### 2.1. Data source of document title By default, local_staticpage will use the first `