Page 1 of 1

User view needs as ID in place of Name

PostPosted:Mon Jul 13, 2020 3:09 am
by duyvh0309
Hi,

I am using openkm-6.3.0 community edition on Centos-6.5.

By default user view shows as Name for "Created by", "Modified by", "User in security Tab" etc. Here we want to view these field as ID. Let me explain by example. Here one user availabe as below (refer userDescription.JPG)
ID: csp
Name: Chandra Shekhar

It shows as Chandra Shekhar at every place (refer ItShows.JPG), here I want as csp (refer WeWantAs.JPG).

I have also attached sample file (userDescription.JPG, ItShows.JPG and WeWantAs.JPG) for reference.

OS - Centos 6.5 x64 Bit
OpenKM Version- 6.3.0 Community Edition.
Browser - IE8-11, Chrome & Mozilla.

Kindly feel free to revert in case further information needed.

Thanks,
duyvh0309

Re: User view needs as ID in place of Name

PostPosted:Tue Jul 14, 2020 7:20 am
by jllort
You need to apply a minimal change in the source code to display user Id either user Name. I can try to guide you about how doing it.

An easies option what does not require any kind of change is basically updating the username with the user id ( user name and user id be the same ). You can do it with a simple database update ( look for table OKM_USER )