This question about Configuration: Answered
Change default login message
Since I use LDAP plugin, I would like to change default login message, so that I would inform users that they should use their domain names.
Unfortunately, following command do not produce any results:
sudo grep -rnw foswiki_path -e "This is your name written as WikiWord"
Where can I amend this information? I can't see such option in configure as well
--
MateuszKDzior - 03 Mar 2015
It is located in the Templates. Take a look at
foswiki_path/templates/login.tmpl
.
You could just edit the file, but the best way to override this and not lose changes with new versions of Foswiki is to create a new template for a custom skin, say
login.local.tmpl
(The middle part is the name of the new 'skin' you are creating, called "local" here).
- copy
login.tmpl
to login.local.tmpl
- Delete every line except for the one template definition you want to override.
- and insert a line to include the base login template:
For example:
%TMPL:INCLUDE{"login"}%
%TMPL:DEF{"authrealm"}%%MAKETEXT{"This is your windows login. ie DOMAIN/joeuser. [[[_1]][Register]] if you do not have an account yet." args="%SYSTEMWEB%.UserRegistration"}%%TMPL:END%
You can test to template by browsing to http://yoursite.url/bin/login?skin=local,pattern
When you are happy with your changes, update you
SitePreferences * Set SKIN=pattern
setting to be
* Set SKIN=local,pattern
--
GeorgeClark - 03 Mar 2015