• Notification message subject change in 6.3

  • OpenKM has many interesting features, but requires some configuration process to show its full potential.
OpenKM has many interesting features, but requires some configuration process to show its full potential.
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.
 #40582  by Donatas
 
Hello,

I have problems with notification subject modification in 6.3. I need document name in the subject field. In 6.2 documentation I found the string "OpenKM - NOTIFICATION - ${documentName}", but in 6.3 it doesn't work. I get the error that documentName is not defined. So what is the variable name for document name?
 #40646  by pavila
 
In OpenKM 6.3.1 you have these objects to use in the template:

* userId: The user who generates the notification.
* notificationMessage: The notification message:
* documentList: The list of documents related to this notification.

As an example, you can set the notification.message.body configuration property as:
Code: Select all
Message: ${notificationMessage}
User: ${userId}
<#list documentList as doc>Document: ${doc.path}
</#list>
I've also updated the migration guide.
 #40766  by Donatas
 
But is it possible to have a document file name in the notification.message.subject? In older versions it was possible and it's very convenient to see file name in the e-mail subject field.
 #40792  by pavila
 
The problem is that now it can handle several documents notifications at the same time. But I think you can do this getting the first document in the documentList list. Check Freemarker documentation.

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.