We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 18397
    • 3,250 Posts
    I have a working AJAX tree (currently as a module) with full drag and drop moving and sorting of documents. I’ve got a few more bugs to iron out before it is ready to be released. Mainly, document type icons don’t work (xml, js, etc.), some CSS glitches, and I have a few more features I want to add back in (context menu).

    Not to tease but I will post more details as soon as I get the chance. Just wanted to give everyone a heads up.
      • 10487 MODX Staff
      • 1,535 Posts
      Sounds great, Mark. Can’t wait to see it smiley
        Garry Nutting
        Senior Developer
        MODX, LLC

        Email: [email protected]
        Twitter: @garryn
        Web: modx.com
        • 7923
        • 4,213 Posts
        Wow, sounds superb! I’m guessing you used this laugh


          "He can have a lollipop any time he wants to. That's what it means to be a programmer."
          • 18397
          • 3,250 Posts
          Yes, but I rewrote a good portion of the js to make it preserve ids.
            • 4018
            • 1,131 Posts
            Mark, keep in mind that there is a distinct possibility that we’ll be using the Dojo Toolkit to revamp the manager for the 1.0 release. One of the widgets included in the Dojo Toolkit is a tree menu that supports dragging and dropping. What you’re doing is not a total loss though. If you can get this finished soon we can implement it into the 0.9.5 release and get rid of some more of the bogus javascript code in the manager...not to mention a few more frames. laugh

            Jeff
              Jeff Whitfield

              "I like my coffee hot and strong, like I like my women, hot and strong... with a spoon in them."
              • 18397
              • 3,250 Posts
              The Dojo tree does not support reordering.... this one does. That is why I chose not to base my code off of Dojo.
                • 25663 MODX Staff
                • 12,272 Posts
                So Mark, care to share what you’ve got to date as Jeff and I are streamlining the current manager?
                  Ryan Thrash, MODX Co-Founder
                  Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
                  • 31337
                  • 258 Posts
                  Quote from: Mark at Jul 27, 2006, 10:53 AM

                  The Dojo tree does not support reordering.... this one does. That is why I chose not to base my code off of Dojo.

                  Yes it does. Unfortunately the dojo docs suck, but if you look at the source code for their demos as well as the source code for their nightly tests, you’ll get a pretty good idea of what all the widgets are capable of.
                    • 18397
                    • 3,250 Posts
                    Could you direct me to this nightly test?
                      • 4018
                      • 1,131 Posts
                      It’s not a big deal right now. I’m quite a ways off from being able to sit down and play with Dojo right now. I’m holding off till we get the manager cleaned up so your new tree menu will be an immense help in that process. Plus, as noted, Dojo does support reordering...but I really need to wrap my head around the code first. Reordering should be pretty simple. Since the results are just lists it should be pretty easy to send an Ajax request back to the server with a parameter that tells it how to order everything and send back the results. So, yeah, it supports it...it just takes some planning. wink Who knows...we might not even use the Dojo tree menu...or even Dojo for that matter. But if we do, that would be great since it means we would be able to drive all the functionality of the manager under just one unified javascript library which in turn means faster load times and better performance. laugh

                      Jeff
                        Jeff Whitfield

                        "I like my coffee hot and strong, like I like my women, hot and strong... with a spoon in them."