Copied to clipboard

Flag this post as spam?

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


  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    Aug 02, 2010 @ 15:48
    Ismail Mayat
    0

    Actionhandler for after sort

    Guys,

    Is there an action that is fire after sort is performed in the umbraco backend? I cant see to find anything in the api docs or umbraco wiki.  Or would you just tap into after publish event becuase after a sort you publish anyway to update the xml cache?

    Regards

    Ismail

  • Darren Ferguson 1022 posts 3259 karma points MVP c-trib
    Aug 02, 2010 @ 16:05
    Darren Ferguson
    1

    Believe you can use a legacy action handler.

    A handler "Sort" is invoked against the parent document.

    if ((helper.Request("app") == "content" | helper.Request("app") == "") && ParentId > 0)
                            global::umbraco.BusinessLogic.Actions.Action.RunActionHandlers(new Document(ParentId), ActionSort.Instance);
  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    Aug 02, 2010 @ 16:26
    Ismail Mayat
    0

    Darren,

    So you would have to use the old way namely implement IActionHandler?

    Regards

    Ismail

  • Darren Ferguson 1022 posts 3259 karma points MVP c-trib
    Aug 02, 2010 @ 17:06
    Darren Ferguson
    0

    Yes - no event is raised that i can see.

Please Sign in or register to post replies

Write your reply to:

Draft