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: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

QuestionForm edit

Subject Configuration
Extension LdapContrib
Version Foswiki 1.1.9
Status Answered
Related Topics
Topic revision: r2 - 03 Mar 2015, GeorgeClark - This page was cached on 23 May 2019 - 13:10.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy