I've got a site which we're adding courier to, but it's got some Document.After_Save events which create some children under the node.
The problem is that when you push the node with Courier (with its children) the event handlers are still firing.
I've got around this before to prevent the problem when copying nodes so I have a handler to deal with it but I need to know if there is any way to detect that the creation is being done from Courier or if it's being done from within the site itself.
How could you use that? The sender object is the document created, not an object indicating the source of the invocation which would make it a lot easier.
Courier and Document.After_Save event
I've got a site which we're adding courier to, but it's got some Document.After_Save events which create some children under the node.
The problem is that when you push the node with Courier (with its children) the event handlers are still firing.
I've got around this before to prevent the problem when copying nodes so I have a handler to deal with it but I need to know if there is any way to detect that the creation is being done from Courier or if it's being done from within the site itself.
Maybe you can use the sender information. A sender.ContentType.Alias check perhaps?
How could you use that? The sender object is the document created, not an object indicating the source of the invocation which would make it a lot easier.
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.