Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
If you happen to use a large enough file collection (such as a clipart library), finding an image can be a daunting task. Even though a search function could be useless for files named DC100_123143.jpg, if the images are correctly named, searching by image names could facilitate the task of finding an adequate image by quite a bit.
Is it possible, then, to add a search feature to IMCE? I think it'd greatly improve the overall usefulness of file browser and make the existence of large file libraries feasible.
Comment | File | Size | Author |
---|---|---|---|
#9 | 711336-9.patch | 5.42 KB | BrockBoland |
#9 | filter.png | 48.87 KB | BrockBoland |
#8 | imce21_filter_file.patch | 5.34 KB | deviato |
#7 | imce_filter_file.patch | 5.2 KB | robbertnl |
#4 | filter-files.patch | 5.53 KB | slayne40 |
Comments
Comment #1
wmostrey CreditAttribution: wmostrey commentedUsing filefield and filefield_sources you can do an autocomplete search on all files.
Comment #2
jcisio CreditAttribution: jcisio commentedIf you want to search by name, the web browser is there for you (Ctrl-F or Cmd-F, then type the keyword).
IMHO IMCE is for quick image browsing/upload, not a catalog organizer. Of course you can categorize yourself, but a search feature for IMCE is perhaps overwhelming.
Comment #3
ufku CreditAttribution: ufku commentedComment #4
slayne40 CreditAttribution: slayne40 commentedHello
Having a large amount of files, I also needed to make finding files in IMCE.
So, I added a kind of filter on the list of current files.
Attached is a patch to add this feature.
Comment #5
garfunk CreditAttribution: garfunk commentedYes. Works fine thanks.
Comment #6
WeRockYourWeb.com CreditAttribution: WeRockYourWeb.com commentedI think the filter/ search is an excellent patch, thank you. We for one, have dozens of client sites that could make use of this. Any chance this will be committed to the project?
Comment #7
robbertnl CreditAttribution: robbertnl commentedGreat feature, good work #4. However, the patch didn't work here in linux (backslashes vs forwardslashes issue).
I replaced the slashes and made a new patch for 6.x-1.4
Comment #8
deviato CreditAttribution: deviato commentedHere's a patch against IMCE 2.1..
Comment #9
BrockBoland CreditAttribution: BrockBoland commentedThe patch in #8 wouldn't apply cleanly for me. I applied it to the 6.x-2.x branch and generated a new patch from git.
I also added some help text to the filter form explaining that it will further filter the current file list. Patch and a screenshot are attached.
Comment #10
ufku CreditAttribution: ufku commentedIMCE tools has this functionality