Content Blocks Gallery - Keeping Original URL

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.