Message Boards

How to display the fullName instead of screen Name when tagging user?

thumbnail
Kalai Arasan, modified 3 Years ago.

How to display the fullName instead of screen Name when tagging user?

Regular Member Posts: 127 Join Date: 1/2/13 Recent Posts
Hi All,I am using Alloy Editor for message boards in liferay7. And when I tried to mention any user from Alloy Editor like as the below screen, The screen Name is getting populated in Alloy Editor. But instead of screen Name, I want to display the Full Name of the user. Could you please tell me how to achieve this?
thumbnail
Mohammed Yasin, modified 3 Years ago.

RE: How to display the fullName instead of screen Name when tagging user?

Liferay Master Posts: 591 Join Date: 8/8/14 Recent Posts

Hi,

You need to have a Custom EditorContributor for Message Board , you can refer below for that

https://help.liferay.com/hc/en-us/articles/360017882652-Modifying-an-Editor-s-Configuration 

Also you can refer below BaseMentionsEditorConfigContributor ,which is being used and change the screenname to fullname in that 

https://github.com/liferay/liferay-portal/blob/7.0.x/modules/apps/collaboration/mentions/mentions-web/src/main/java/com/liferay/mentions/web/internal/editor/configuration/BaseMentionsEditorConfigContributor.java