Filemanager
Filemanager copied to clipboard
Drag and Drop for Files and/or Directories
Is anyone working on or interested in working on this functionality? Having drag and drop to allow moving or copying in the directory taxonomy would be a really nice addition. I would definitely be interested in working on this feature if I could find some others with a similar interest.
This feature is really interesting but should be an option (A new config parameter should be introduced into the js file).
By the way, what could be your contribution on that work?
My php skills are good and I have made changes to the current filemanager javascript to customize it on my end, although I am not an expert with the overall javascript of the filemanager.
Well, on the PHP side, it will probably be kind of easy... the use of rename() function (and few conditionnal tests) should be enough to move files.
Well, I would imaging it essentially brakes down to copying or moving an array of filenames. I think part of my hangup is that I don't know the preferred approach with this project. I don't really mind doing the javascript either but I think it would be best if people discussed the best libraries for the job.
What I mean is that the JS part is probably not that easy. Regarding your contribution and the approach, you can study the current code, create a fork and work on it. Some changes could be done when merging to fit with the actual trunk. Actually, some enhancements and factorization could be done on the existing code .... but due to the lack of time, it's not done yet.
it would be best if people discussed the best libraries for the job.
And that's what we are actually doing. I guess jquery.ui draggable/droppable would be ok but it has to be well connected to the file tree. Or maybe a drag/drop file tree plugin already exists somewhere (I haven't search). What do you think? Do you have other ideas?
By the way : http://interface.eyecon.ro/demos/drag_drop_tree.html
Drag & drop is easily doable with HTML5 (both desktop-browser and browser-browser) but there's a bit to go before that's considered stable among clients. See http://en.wikipedia.org/wiki/Comparison_of_layout_engines_%28HTML5%29 (github screws up the URL it seems, well it's Wikipedia anyways you know where to find it!)
I'll get to it in a few months time earliest if no one else does it.
Xertoz: Did you ever get to it? Any chance you could get to it now? Or is this already done in the latest version.
(not implemented yet)
I got around to an implementation of sorts, using the standard jquery ui drag and drop api. If people are interested I'll organise to put the code up but it's very prototype right now.
Thanks for sharing ! Any online demo link to provide ?
Unfortunately not, but if you can show me how to contribute the code you can try it yourself, this is my first contribution to github ever... Also it's only tested in chrome. On 26 May 2015 09:56, Simon Georget [email protected] wrote:
Thanks for sharing ! Any online demo link to provide ?
— Reply to this email directly or view it on GitHub.
I don't want a pull request now since I need to test it and be sure it fits well with existing features (And I have to say that I have some doubt on jquery-ui).
But I'd be very happy, at least, to test it !
For now, I'll give you the advice of creating your own fork on github. If you want to share it quickly, just zip the archive, host it anywhere on Internet and share the link here.
In case you want to send it to me by email you will find my address [into the code](https://github.com/simogeo/Filemanager/blob/master/connectors/php/filemanager.class.php#L10].
Thanks again.
whats the status of this? :)
still waiting for contributors !
I've been incredibly busy at work but when I get a chance I'll send you the code to your email address. Not guaranteeing it's perfect.
sounds good lordplagus! looking forward to this!
Any updates on this?