Copied to clipboard

Flag this post as spam?

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


  • Fredrik 89 posts 108 karma points
    Apr 18, 2011 @ 10:55
    Fredrik
    0

    Event when creating new document

    Hello,

    I wish to fire an event when I add a new document to my content tree, on the create click.

    How can this be done?

  • Rich Green 2246 posts 4008 karma points
    Apr 18, 2011 @ 11:00
    Rich Green
    0

    Edit: Sorry, misread your question, I assume you want it on Create, not on publish?

  • Bogdan 250 posts 427 karma points
    Apr 18, 2011 @ 11:40
  • Fredrik 89 posts 108 karma points
    Apr 18, 2011 @ 11:41
    Fredrik
    0

    Yes Rich, I want it on Create.

  • Rich Green 2246 posts 4008 karma points
    Apr 18, 2011 @ 11:49
    Rich Green
    0

    As far as I know, there is not an event that runs when a node is first created, only when published.

    Rich

  • Darren Ferguson 1022 posts 3259 karma points MVP c-trib
    Apr 18, 2011 @ 11:50
    Darren Ferguson
    0

    From memory it is Document.AfterNew

    Easiset way to discover events is to type "Document dot" in VS and let intellisense tell you.

Please Sign in or register to post replies

Write your reply to:

Draft