-
Improvement
-
Resolution: Unresolved
-
Minor
-
None
-
2.6.2, 3.1, 3.6, 4.0.5, 4.2.2
-
MOODLE_26_STABLE, MOODLE_31_STABLE, MOODLE_36_STABLE, MOODLE_400_STABLE, MOODLE_402_STABLE
MDL-31776 added Additional name fields, with the use of the fullnamedisplay setting to define which name fields are used across the site.
Unfortunately, it doesn't appear to accommodate users choosing to use different name fields. E.g. Some users specify an Alternate name, as well as their first name and last name - but some don't.
Perhaps fullnamedisplay could allow multiple definitions, separated by a token, e.g. "alternatename -> firstname middlename lastname -> firstname lastname".
When displaying a user name, fullnamedisplay would be exploded on the token to retrieve the definitions, and the name is then formatted using the first definition where all it's placeholders are present in the user name object.