So I want to fire a method on the publish event, only when the content being published has never been published before so that if I were to ever make edits this wouldn't fire off every time.
Hi
You need to hook into the event handler for saving content. This post shows you how to do that. On this post there is a check to see if it is a new content item. This should get you to where you need to be.
ContentService Publishing on first instance fire
Hi guys,
So I want to fire a method on the publish event, only when the content being published has never been published before so that if I were to ever make edits this wouldn't fire off every time.
Any idea's on what I can use to restrict this??
Cheers,
Hi You need to hook into the event handler for saving content. This post shows you how to do that. On this post there is a check to see if it is a new content item. This should get you to where you need to be.
http://www.codeshare.co.uk/blog/intercepting-content-and-member-save-events-in-umbraco/
Thanks that's great, worked a treat
is working on a reply...