Copied to clipboard

Flag this post as spam?

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


  • Michael Biggs 18 posts 98 karma points
    May 30, 2016 @ 14:35
    Michael Biggs
    0

    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,

  • Paul Seal 524 posts 2889 karma points MVP 7x c-trib
    May 30, 2016 @ 16:37
    Paul Seal
    100

    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/

  • Michael Biggs 18 posts 98 karma points
    Jun 04, 2016 @ 12:02
    Michael Biggs
    0

    Thanks that's great, worked a treat

Please Sign in or register to post replies

Write your reply to:

Draft