Notification and subscription messages

From OpenKM Documentation
Revision as of 20:06, 25 January 2010 by Pavila (talk | contribs)

Jump to: navigation, search

When you are subscribed to a document, any change in the document will be notified by email. These email messages are created using some defined templates. You can modify these default templates to create messages adapted to your company style. This modification is done editing the file OpenKM.cfg.


Nota clasica.png Be careful to set the property application.url or this OpenKM feature won't work.

These are the default values:

OpenKM - NOTIFICATION - {0}
<b>Document: </b><a href="{0}">{1}</a> <br/><b>User: </b>{3}<br/><b>Message: </b>{4}<br/>
OpenKM - {0} - {1}
<b>Document: </b><a href="{0}">{1}</a> <br/><b>User: </b>{3}<br/><b>Event: </b>{4}<br/><b>Comment: </b>{5}<br/>

And these are the substitution variables used:

NOTIFY MESSAGE SUBJECT NOTIFY MESSAGE BODY
{0} - document path {0} - document URL
{1} - document name {1} - document path
{2} - document name
{3} - user id
{4} - message
SUBSCRIPTION MESSAGE SUBJECT SUBSCRIPTION MESSAGE BODY
{0} - event type {0} - document URL
{1} - document path {1} - document path
{2} - document name {2} - document name
{3} - user id
{4} - event type

Take care of the OpenKM.cfg format: this is a Java properties file and has some limitations, for example, this file have to be coded in ISO-8859-1 format. Also single quotes (') should be protected with another single quote ().

More info on this can be found at: