Hello Carlos.
First, you have to register your new templates using the next extension
point:
<extension
target="org.nuxeo.ecm.platform.ec.notification.service.NotificationService"
point="templates">
<template name="newTemplateForSubscriptionsUpdated"
src="templates/newTemplateForSubscriptionsUpdated.ftl" />
...
</extension>
Later, you have to assign these templates with the notifications using
the following extension point:
<extension
target="org.nuxeo.ecm.platform.ec.notification.service.NotificationService"
point="notifications">
<notification name="Subscriptions updated" channel="email" enabled="true"
availableIn="Workspace"
autoSubscribed="false" template="subscriptionsUpdated" subject="New subscription"
label="label.nuxeo.notifications.subscriptions.updated">
<event name="subscriptionAssigned"/>
</notification>
...
<extension>
In order to redefine a notification you have to disable it using the
"enabled" property, and later create a new notification with the desired
template. For example, if you want to change the former notification:
<extension
target="org.nuxeo.ecm.platform.ec.notification.service.NotificationService"
point="notifications">
<notification name="Subscriptions updated" channel="email" enabled="false"
availableIn="Workspace"
autoSubscribed="false" template="subscriptionsUpdated" subject="New subscription"
label="label.nuxeo.notifications.subscriptions.updated">
<event name="subscriptionAssigned"/>
</notification>
<notification name="New notification for subscriptions updated" channel="email"
enabled="true" availableIn="Workspace"
autoSubscribed="false" template="newTemplateForSubscriptionsUpdated" subject="My new
subject" label="label.nuxeo.notifications.subscriptions.updated">
<event name="subscriptionAssigned"/>
</notification>
...
<extension>
Regards.
Carlos Barbiero escribió:
Hi All,
How can I change the notification email templates? What is the entire
process that I have to make it work?
Thanks
_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm
To unsubscribe, go to http://lists.nuxeo.com/mailman/options/ecm