Closed (outdated)
Project:
Media Directories
Version:
2.1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
1 Nov 2020 at 23:04 UTC
Updated:
2 Jul 2026 at 18:33 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
ytsurkComment #3
ytsurkRemoving the dnd plugin, will only disable the drag&drop functionality of folders (not media, which is less critical IMO).
Needs to be tested with #3176332: Drag and Drop Parent Folder into Subfolder
Comment #4
ytsurkI want to flavor this with additional permissions.
Comment #5
dom. commentedUpdating patch #3 to also disable media d&d with the option.
Comment #6
dom. commentedUpdate patch #5 to also include a new permission for this as well.
Comment #7
dom. commentedWhat about rephrasing this to "Enable drag&drop" being TRUE by default ?
It feels odd to disable some functionnality. We shoudl keep positive and on the contrary allow to enable more (like dnd).
Later on, that would allow to support more extra pluging from jsTree. Some of them could be interesting in the context of this module. "Enable" rather than "disable" would make more sense in this direction.
Would you agree and want me to update this ?
Also we could have a fieldset after "combined media" for these "extra features".
Comment #8
ytsurkI was unsure about dnd of media, but let's be inclusive :D
I would prefer having two setting/permission sets, one for directory dnd and one for media dnd.
I definitely vote for
enabling, and have it enabled by default.This means we need an update hook given the permission to existing roles, having "another" permission, probably access media directories ui browser.
The settings (jsTree feature block) should live imo under media_directories_ui, it can be below combined upload, yeah.
Comment #9
ytsurkComment #10
ytsurkComment #11
mmenavas commentedRerolled patch #6 to be compatible with latest 2.1.x.
Comment #12
ytsurkSorry for having this so long silently assigned to me, doing nothing, but here we go.
I added the update hook for the config schema change.
Also renamed stuff a bit and added the config options to a separate fieldset.
Comment #13
ytsurkSorry - review welcome, especially the update hook (meaning running it on another -dev instance then mine).
Comment #14
rang501 commentedI looked at it and found out that the configuration form is not saving the checkbox value. I did find the problem and fixed it.
Another thing - the bold text about the manual cache rebuild - it was not necessary and I did remove it. I think that any manual cache rebuild is only for cache debugging. This is something that the users shouldn't do at all. We should add correct cache tags or call specific cache rebuild functions during the settings save. At the moment I do not see there is any need for it.
Overall, it seems to work just fine. I do agree that the option should turn off the dnd functionality completely (both folders and media).
Comment #15
rang501 commentedClosing as outdated.