Hi,

For the moment you cannot merge 2 notifications with the same name.
What you can do instead is declare

<notification name="Modification" enabled="false">
 <event name="documentModified"/>
</notification>

And declare your "new" notification :

<notification name="MyNotifModification" channel="email" enabled="true"
availableIn="Workspace"
     autoSubscribed="false" template="modif" subject="Document mega
modifie" label="label.nuxeo.notifications.modif">
     <event name="documentModified"/>
   </notification>

That's about it !

Cheers,
Narcis

[EMAIL PROTECTED] wrote:
Hello,

I'm unable to use notification extension point.

I want to change the subject of notification emails. I wrote a
notification-contrib.xml file :

<?xml version="1.0"?>

<component
  name="com.aka.demo.notification.service.NotificationContrib">

  <extension
target="org.nuxeo.ecm.platform.ec.notification.service.NotificationService"
    point="notifications">

    <notification name="Modification" channel="email" enabled="true"
availableIn="Workspace"
      autoSubscribed="false" template="modif" subject="Document mega
modifie" label="label.nuxeo.notifications.modif">
      <event name="documentModified"/>
    </notification>

  </extension>

  <extension

target="org.nuxeo.ecm.platform.ec.notification.service.NotificationService"
    point="templates">

    <template name="modif" src="templates/mail_modif.ftl" />

  </extension>

</component>

but the "notification" extension point is not called. The second one
(templates) is called because the "modif" template is the default template.

The mail body is different but I'm not able to change the subject.

Thank you.

_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm

_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm

Reply via email to