• User Id in notification email

  • We tried to make OpenKM as intuitive as possible, but an advice is always welcome.
We tried to make OpenKM as intuitive as possible, but an advice is always welcome.
Forum rules: Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
 #22386  by taihung
 
In [Administration] -> [Config]
The default value of Key notification.message.body is :
Code: Select all
<b>Document: </b><a href="${documentUrl}">${documentPath}</a><br/>
<b>User: </b>${userId}<br/><b>Message: </b>${notificationMessage}<br/>
Can I change ${userId} to user Name?

Thanks.
 #22438  by pavila
 
Currently is not possible, but I have added it as future enhancement.
 #54827  by jllort
 
Not implemented and because we are in way to do a major release will not be updated in the current code ( in the major release will coming ).

if you wish to have it now could edit the code at this point:
https://github.com/openkm/document-mana ... e.java#L84

And do something like:
Code: Select all
String userName = new DbAuthModule().getName(null, userId);
Map<String, Object> model = new HashMap<>();
model.put("userId", userId);
model.put("userName", userName);
model.put("notificationMessage", message);
model.put("documentList", col);
 #54831  by MarcoOliveira
 
How I can find this file?

I find in this folder

/home/openkm/tomcat-8.5.69/webapps/OpenKM/WEB-INF/classes/com/openkm/ws/common

but is full encrypted

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.