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.
Now the module provides autocomplete search just using file names. It would be good to search also by the file description if using CCK filefield and if the file name is overriden by user using the description option.
Comment | File | Size | Author |
---|---|---|---|
#5 | filefield_sources.patch | 3.7 KB | Nor4a |
#3 | filefield_sources.patch | 3.66 KB | Nor4a |
#2 | filefield_sources.patch | 3.46 KB | Nor4a |
Comments
Comment #1
quicksketchUnfortunately this is nearly impossible because the description for a file is not stored in the "files" database table. The description is stored by CCK, and in any number of different tables depending on which content type the file was originally uploaded into.
Comment #2
Nor4a CreditAttribution: Nor4a commentedThis is not so complicated.
A bit of coding and the patch is made to do the job for "Reference existing" option.
Hope to see this in the next release :)
Comment #3
Nor4a CreditAttribution: Nor4a commentedIn the new path fixed small search issue when searching by description.
Comment #4
quicksketchThanks for the patch. I hadn't realized that we're already querying every in individual field already. This patch looks good but it could use some cleanup to following coding standards (http://drupal.org/coding-standards).
Comment #5
Nor4a CreditAttribution: Nor4a commentedYes - there were some Coder issues - fixed in the attached patch.
Comment #6
quicksketchThis issue already handles most of #837894: Reuse existing metadata, it'd probably be wise of us to go ahead and make this support other properties besides description (such as alt and title).
Comment #7
asb CreditAttribution: asb commentedsub
Comment #8
temelkoff CreditAttribution: temelkoff commentedsub
Comment #10
asb CreditAttribution: asb commentedAny news on this issue?
Comment #11
quicksketchAt this point I'm not sure about this patch, we'll need to port it to Drupal 7 and see if the same functionality is reasonable there.
Comment #12
quicksketchD6 is no longer supported, so moving this forward.