We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 13218
    • 134 Posts
    Hi all,
    is there something like a system event or hook when user drag and drops / sorts a resource in the resource tree of the manager? I was kinda hoping on onBeforeDocFormSave, but this of course only fires, if the 'form' is saved.

    Thx,
    Marc
      @itWilllBeOK
      • 18373 ☆ A M B ☆
      • 3,141 Posts
      I'm guessing OnResourceSort should do the trick, but never used it myself. Available variables are:

      • $nodes
      • $nodesAffected
      • $contexts
        Mark Hamstra • Developer spending his days working on Premium Extras and a MODX Site Dashboard with the ability to remotely upgrade MODX and extras to make the MODX world a little better.

        Tweet me @mark_hamstra, check my infrequent blog at markhamstra.com, my slightly more frequent ramblings at MODX.today or see code at Github.
        • 13218
        • 134 Posts
        Thanks Mark,
        i just now saw it.
        I just skimmed the rtfm, didn't think to look in the actual list in the manager. So i looked up the processor for resource/sort - i keep making this mistake over and over...

        OnResourceBeforeSort it is. Now to make it work.
          @itWilllBeOK