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 10059 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 3258 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 10059 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 3258 karma points MVP c-trib
    Aug 02, 2010 @ 17:06
    Darren Ferguson
    0

    Yes - no event is raised that i can see.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies