Thank you, it works very well in autosubscribe="false" mode.

In autosubscribe="true", how could I know who will receive the mail ? It 
depends on the event ?




Narcis Paslaru <[EMAIL PROTECTED]> 
Sent by: [EMAIL PROTECTED]
29/11/2007 11:30
Please respond to
[EMAIL PROTECTED]


To
[EMAIL PROTECTED]
cc
[email protected]
Subject
Re: [Ecm] Notification informations






Hello,

[EMAIL PROTECTED] wrote:
>
> Thank you for your answer.
>
> If you duplicated notification-contrib.xml, then it's normal to have the
> notifications displayed twice.
> <<< hum ok, how I can overwrite it ?
>
You may put in your own component a definition of a notification with 
the same name,
but with enabled flag set to false. And you may declare your own 
notifications from scratch.
> This notification is used when a user wants to send by email a link to a
> document and a comment about it (note the envelope icon in the top right
> of the screen).
> <<< yes, I understood, but I don't have an email notification button 
> in notification tab (in addition to Modification and Lifecycle State 
> Modification buttons).
>
There are 2 kinds of notifications, depending on the autosubscribed flag.

If autosubscribe is set to false, then the users must subscribe to the 
notification themselves and therefore the notification appears in the 
list with the button.
If autosubscribe is set to true, then there is no need to subscribe to 
that notification, as the programmer will take care of putting the users 
they want to receive a certain notification (like the responsibles for 
document approval). In this case there the notification does not appear 
in the list. Email notification is one of these notifications. It is 
sent to the users that the sender selects in the TO field.

If you need a "Email document" notification that users can subscribe to, 
then feel free to put it in your own contribution, but be carreful to 
give it a different name.

Don't hesitate if you have more questions about the notification service.

Cheers,
Narcis
>
>
>
>
>
> *Narcis Paslaru <[EMAIL PROTECTED]>*
> Sent by: [EMAIL PROTECTED]
>
> 29/11/2007 11:07
> Please respond to
> [EMAIL PROTECTED]
>
>
> 
> To
>                [EMAIL PROTECTED]
> cc
>                [email protected]
> Subject
>                Re: [Ecm] Notification informations
>
>
>
> 
>
>
>
>
>
> Hello,
>
> [EMAIL PROTECTED] wrote:
> >
> > Hello,
> >
> > I want to add new events in the notification tab (deleting a document
> > for exemple).
> >
> > First, I created a notification-contrib.xml file from
> > 
> 
nuxeo-platform-notification-core/src/main/resources/OSFGI-INF/notification-contrib.xml
 

>
> >
> > I changed the component name and add it to the manifest.
> >
> > In notification tab (note document), I have the events Modification
> > and Lifecycle State Modification twice !
> >
> If you duplicated notification-contrib.xml, then it's normal to have the
> notifications displayed twice.
> >
> >
> > If we have, for exemple :
> >
> >     <notification name="Email document" channel="email" enabled="true"
> > availableIn="all"
> >
> >       autoSubscribed="true" template="emailDocument" 
> subject="${subject}"
> >
> >       label="label.noLabel">
> >
> >       <event name="emailDocumentSend"/>
> >
> >     </notification>
> >
> > So I thought we could have a "Email document" subscribe button in
> > notification tab but there isn't.
> >
> >
> This notification is used when a user wants to send by email a link to a
> document and a comment about it (note the envelope icon in the top right
> of the screen).
> >
> > My Nuxeo version : 5.1.2 GA
> >
> > Thank you.
> >
> > 
------------------------------------------------------------------------
> >
> > _______________________________________________
> > ECM mailing list
> > [email protected]
> > http://lists.nuxeo.com/mailman/listinfo/ecm
> > 
> Cheers,
> Narcis
> _______________________________________________
> ECM mailing list
> [email protected]
> http://lists.nuxeo.com/mailman/listinfo/ecm
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> ECM mailing list
> [email protected]
> http://lists.nuxeo.com/mailman/listinfo/ecm
> 

_______________________________________________
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