Static Pages
Maintained by
Alexander Bias, Moodle an Hochschulen e.V.
Moodle plugin which displays static information pages which exist outside any course, imprint or faq pages for example, complete with Moodle navigation and theme
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
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
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
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
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
"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
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.
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
Great job!
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