Closed (fixed)
Project:
FileField Sources Reference Options [obsolete]
Version:
6.x-1.1
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
9 May 2011 at 13:41 UTC
Updated:
16 Mar 2012 at 08:54 UTC
Jump to comment: Most recent file
Comments
Comment #1
antiorario commentedI assume you're using FileField Source Reference Options to pull up the view, since FileField Sources doesn't provide the functionality. FileField Source Reference Options displays fields according to FileField Sources (only file name and size), and since FileField Source is Views-agnostic, this doesn't sound like something that will happen any time soon—unless quicksketch decides to integrate the relevant functionality as in #730578: Options for Autocomplete (restrict file list) and provide extra options to customize the file list.
Comment #2
ArielCamino commentedThanks antiorario! Yes i'm using FileField Source Reference Options, and finally i modified the module, and use timestamp and filepath for showing the imageas in the theme_filefield_sources_reference_opt_autocomplete_item function. Patch attached.
Comment #3
antiorario commentedComment #4
antiorario commentedEven with your patch, the timestamp and the filepath will not be shown in the drop-down list, because the theme function in FileField Sources does not take the new fields into account. A more generic approach, by which an admin could choose which fields to display (and which could make things very messy) would work best with the cooperation of FileField Sources. Won't fix, for now.
Comment #5
mtcs commentedSorry for reopening this issue but I needed this functionality and following the original "source" (cck nodereference and patches) I've created a patch to display view fields instead of filename and size.
It works for me but I haven't tested very thoroughly (especially the non-views selection might be broken).
Please, have a look at it and let me know what you think.
Comment #6
antiorario commentedIt's taken me a while, I know, but I tested #5 and committed. The new release should be out in a few minutes.