Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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?
Edit: Sorry, misread your question, I assume you want it on Create, not on publish?
Is this what you want to achieve: http://our.umbraco.org/wiki/reference/api-cheatsheet/attaching-document-eventhandlers ?
Yes Rich, I want it on Create.
As far as I know, there is not an event that runs when a node is first created, only when published.
Rich
From memory it is Document.AfterNew
Easiset way to discover events is to type "Document dot" in VS and let intellisense tell you.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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?
Edit: Sorry, misread your question, I assume you want it on Create, not on publish?
Is this what you want to achieve: http://our.umbraco.org/wiki/reference/api-cheatsheet/attaching-document-eventhandlers ?
Yes Rich, I want it on Create.
As far as I know, there is not an event that runs when a node is first created, only when published.
Rich
From memory it is Document.AfterNew
Easiset way to discover events is to type "Document dot" in VS and let intellisense tell you.
is working on a reply...