Copied to clipboard

Flag this post as spam?

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


  • Rune Grønkjær 1371 posts 3102 karma points
    Feb 05, 2014 @ 11:34
    Rune Grønkjær
    0

    Event when entry is deleted?

    Hi Guys,

    Does Contour have some kind of event I can hook into when an entry is deleted? I need to do something whenever an entry is deleted from the Contour entry list UI.

    Thanks

    /Rune

  • Comment author was deleted

    Feb 05, 2014 @ 11:48

    Nope but can add it in for you, before the actual delete and sending the record as arg or what do you need?

  • Rune Grønkjær 1371 posts 3102 karma points
    Feb 05, 2014 @ 13:57
    Rune Grønkjær
    0

    Yes. That would be the idea. Before deletion would be perfect.

    Would it be as a new workflow type?

    I also need to ask when you can add it in? Customers you know :)

    /Rune

  • Comment author was deleted

    Feb 05, 2014 @ 14:02

    Not a workflow , just a .net event, will add it now, so available to you today!

  • Comment author was deleted

    Feb 05, 2014 @ 14:11

    Building now so available to you in a couple of mins :)

  • Rune Grønkjær 1371 posts 3102 karma points
    Feb 05, 2014 @ 14:11
    Rune Grønkjær
    0

    Sweet. That will be great :)

    Thanks for the quick response.

    /Rune

  • Comment author was deleted

    Feb 05, 2014 @ 14:15

    Ok you can use http://nightly.umbraco.org/Umbraco%20Contour/3.0.19%20WIP/

    If you check the class Umbraco.Forms.Data.Storage.RecordStorage

    it has 3 events now

    public static event EventHandler<RecordEventArgs> RecordDeleting;

    public static event EventHandler<RecordEventArgs> RecordUpdating;

    public static event EventHandler<RecordEventArgs> RecordInserting;

    At your service ;)

  • Rune Grønkjær 1371 posts 3102 karma points
    Feb 05, 2014 @ 14:37
    Rune Grønkjær
    0

    That's insane dude :D

    We will test it and get back to you if we find a bug or the like :)

    Thanks again

    /Rune

  • Comment author was deleted

    Feb 05, 2014 @ 14:45

    yup that's perfect :)

Please Sign in or register to post replies

Write your reply to:

Draft