Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Aaron Powell 1708 posts 3046 karma points c-trib
    Jul 16, 2010 @ 01:17
    Aaron Powell
    0

    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.

  • Sebastiaan Janssen 5061 posts 15544 karma points MVP admin hq
    Jul 16, 2010 @ 13:49
    Sebastiaan Janssen
    0

    Maybe you can use the sender information. A sender.ContentType.Alias check perhaps?

  • Aaron Powell 1708 posts 3046 karma points c-trib
    Jul 18, 2010 @ 10:48
    Aaron Powell
    0

    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.

  • 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.

Please Sign in or register to post replies