When using the Gallery input for Content Blocks, if I drag and drop an image from the MODx Files tree from another media source the Gallery will copy files into it’s defined gallery folder. So I end up with duplicates. Is there a way to tell the Gallery to just use the original file through the media source’s URL?
In ContentBlocks, there are different ways files can be added.
- Uploading will obviously upload it to the configured path.
- Using the Choose Image option to browse the media browser will leave the file in place where it is and store just the URL.
- Dropping a file into the field (from outside the browser or from the file tree) will treat it as an upload and create a copy
- Pasting in a URL will download the file and upload it to its configured path
So if you don’t want a copy - browse to the file will avoid that.
We’ve tried “choosing” the file now a few different times, but it can become extremely tedious when the files are in a secondary Media Source and two or three folders down, because the dialog resets with every instance. It takes like six clicks for every image added. After a dozen images that can be tiresome.
It would be nice if there was some way we could configure the drag-and-drop from the MODx Files tab to understand and store the URL.
If you’re on MODX 3.1+, you can use ctrl/shift+click to select multiple images at once.
We also have an improvement coming in 1.14.0-pl that makes sure the gallery input opens the MODX browser to its configured location. That doesn’t help if you’re choosing things from other places but improves the UX for other cases.
I was able to create a band-aid or sorts by creating a second Gallery and setting the media source for that. Not as quick as drag-n-drop from the file tab, but cuts down on a few couple extra clicks. We aren’t on 3.1 yet, but that is on my todo list.