Jump to content

[SOLVED] How do I format the username displayed on the admin?


Boost
 Share

Recommended Posts

Hei,

So, I created an user like this:

1996066454_Screenshotfrom2023-04-1614-32-04.thumb.png.eb2b233db1c810cf3490e8a08c927809.png

 

And when I log in with the user, this is what shows up:

737555794_Screenshotfrom2023-04-1614-32-32.png.695688aa3c348982d5d77588868b400e.png

How can it be formatted to be shown as "Jack Priest", or, in the last resort, show up his email instead of his name?

Thanks,
B

Link to comment
Share on other sites

Go to Modules -> Configure -> AdminThemeUiKit. There will be a section called “Masthead + navigation” which you can click to open. Then under “User navigation label format”, where it currently says “{Name}”, enter “{title}” instead. Or any other valid template string you like, obviously. The field pretty much tells you what to do. Of course this only works if your user template has fields for the things you want to display.

image.png.64f26a5c7b6669d7d6a42b0e0a65b4f8.png

As you will notice, other admin themes have their own settings, so if you allow users to change themes, you’ll probably want to make equivalent changes to all of them. However, AdminThemeReno doesn’t use the same template string system and AdminThemeDefault has no setting for this at all.

  • Like 2
Link to comment
Share on other sites

  • Boost changed the title to [SOLVED] How do I format the username displayed on the admin?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...