Note: You are currently viewing documentation for Moodle 2.6. Up-to-date documentation for the latest stable version of Moodle may be available here: Additional name fields.

Additional name fields

From MoodleDocs

New feature
in Moodle 2.6!
In Moodle 2.6 onwards, as well as first name and surname, the following additional name fields may be used:

  • First name - phonetic
  • Surname - phonetic
  • Middle name
  • Alternate name

Administration settings

List of users with full names displayed

An administrator can set how names are displayed across the site via the setting 'Full name format' (fullnamedisplay) in Administration > Site administration > Users > Permissions > User policies. The default setting is language, which means that names are displayed according to information from the language pack used on the site. Alternatively, the following placeholders may be used:

  • firstname
  • lastname
  • firstnamephonetic
  • lastnamephonetic
  • middlename
  • alternatename

For example, a user with first name John, surname Doe, middle name James, first name phonetic Jon, and surname phonetic Dough will have his name displayed as

  • John James Doe when 'Full name format' is set to firstname middlename lastname and
  • Doe John (Dough Jon) when 'Full name format' is set to lastname firstname (lastnamephonetic firstnamephonetic)

Users with the View full names capability (by default users with the role of manager, teacher or non-editing teacher) can always see first and last names, regardless of the "Full name format" setting.

Note for sites upgrading from an earlier version: The 'Full name format' setting was previously in Site policies.

User profile settings

Users can enter additional names by editing their profile in Administration > My profile settings > Edit profile.

First name, surname and any additional names specified by an administrator in 'Full name format' are listed in the General section. Additional names not specified in 'Full name format' are listed in an "Additional names' section.

Name fields as specified in 'Full name format'
Additional name fields