Hi,
Thank you very much for your answer. I'm not able to declare a new notification but If I use the same name, the mail subject changes :
<notification name="Modification" enabled="false">
<event name="documentModified"/>
</notification>
<notification name="Modification" channel="email" enabled="true" availableIn="Workspace"
autoSubscribed="false" template="modif" subject="A test subject" label="label.nuxeo.notifications.modif">
<event name="documentModified"/>
</notification>
Narcis Paslaru <[EMAIL PROTECTED]>
24/09/2007 17:56 ZE3Please respond [EMAIL PROTECTED]
To [EMAIL PROTECTED]
cc [email protected]
bcc
Subject Re: [Ecm] Notification problem
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="" />
>
> </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
