Static Pages icon

Static Pages

Moodle plugin which displays static information pages which exist outside any course, imprint or faq pages for example, complete with Moodle navigation and theme
Price option: Free

Supports Moodle 2.4-5.2 See all versions
Latest release: 2 weeks ago
Installations: 4885
Downloads (last 90 days): 1509

Frankenstyle name: local_staticpage
Local plugins

Comments

Comments are no longer open for new posts. Existing comments remain available to read.

شكراً لك
Thank you , it works when I changed name of file to faqarabic2.en.html and now translation works for me
thanks again
Sorry for the late answer, I was unavailable for some days.
Now I see that you have a filename "faqarabic2.eng.html". Please change that to "faqarabic2.en.html" (two letters used for language identification) and check if it works then.
Thanks,
Alex
yes both url and file name are lowercase
I have the following message in plugin page which suggest it is server problem not plugin
************************************
The following document file was found:
faqarabic2.eng.html
From the document file's filename, Moodle derived the following pagename:
faqarabic2.eng
The document should be available at the following URL, but actually a browser won't be able to download and view it (perhaps there is something wrong with your webserver configuration - see README file for details):
http://localhost/lms/local/staticpage/view.php?page=faqarabic2.eng
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):
http://localhost/lms/static/faqarabic2.eng.html
The document will be available for the following language:
All languages
***********************************************
I added line in httpd.conf still did not work
thank you so much
Just to be sure: Did you also change the URL you are trying to open to lowercase?
I changed file name to only lowercase but same error "file not found"
Could you please try to use only lowercase letters?
same error with FAQ.html "The requested URL /lms/static/FAQ.html was not found on this server."
Even if you have created a file FAQ.en.html, you just like to it with /static/FAQ.html. Have you tried that?
when I just use one file ( FAQ.html ) it works, for translation I understand how to do it now ( thanks for your rephrase )
I did try it and have problem, when file saved as FAQ.en.html , I recieve error that file not found "The requested URL /lms/static/FAQ.eng.html was not found on this server." when I click on url the plugn provides
thanks again
Well, I think the README explains it already quite well, but let me rephrase the explanation:
If you create a static page document foo.html, this document can be viewed on /static/foo.html regardless of the language of the Moodle user.
If you create a static page document foo.en.html, this document can be viewed on /static/foo.html, but does only display for users who are using Moodle with english language.
If you want to create a static page /static/foo.html which will display texts in english and in german, you have to create a file foo.en.html with english content and a file foo.de.html with german content. In this case, the Moodle language switcher will also work. I think that's what you need.
The stuff with the symbolic links is only needed if you want to have static pages /static/foo.html serving content in english and /static/bar.html serving the same content in german - while being able to simply link to this static page with /static/foo.html and having the language switcher still working.
Alex
thank you for reply and for readme link it is helpful, I found this section which describes what I need exactly
"If you want to serve static pages which are translated into multiple languages and which should be switchable with the Moodle language switcher, you are welcome to create symbolic links in your document directory. This has been tested on Unix-like servers, see http://en.wikipedia.org/wiki/Symbolic_link#POSIX_and_Unix-like_operating_systems for details." but I don't understand the solution
however your plugin is great
thanks
There is multilanguage support, but not with the Moodle multilanguage tags / filter.
Please have a look at https://github.com/moodleuulm/moodle-local_staticpage/blob/master/README.md -> Multilanguage support section and check if this fits your needs.
it is great help.
I have question about multi language page. our site support 2 languages and I write html file that use lang attribute, but it does not work and always shows english language. if user change the language of site, it does not change. is there specific setting for 2 language page
thanks
It works perfectly, even changing the folder that contains the pages, resources and styles.
Great job!
Hi Kevin,
I dare to say that this is a problem of your theme or HTML file and not of the plugin.
local_staticpages just dumps the content of your HTML files into the region-main div container of your theme. If I look at your HTML code of the page you have linked, the region-main is bigger than the widths actually filled with the static content. Within the region-main div container, the content is narrowed by additional bootstrap markup and CSS styles.
Please double check that your theme and HTML files are not the root of this problem. Please also change your theme to theme_clean for an additional test how a static page could look like in your installation with a different theme.
If the problem persists, please create a ticket in https://github.com/moodleuulm/moodle-local_staticpage/issues.
Thanks,
Alex