Closed (fixed)
Project:
FileField
Version:
6.x-3.2
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
8 Mar 2010 at 03:40 UTC
Updated:
8 May 2010 at 01:50 UTC
Jump to comment: Most recent file
Comments
Comment #1
infojunkieAttached is a patch to achieve what I need. In
filefield_field_settings_views_data, I add the necessary declarations to find a "Content: Node" relationship that, when marked as required, shows only files that are attached to a certain filefield, and exposes the associated node data.Comment #2
quicksketchHm, interesting... I think this makes sense to include, but you could actually already accomplish the same thing if you started with a view of type "Node", then made a relationship over to the Files table. This patch just makes it so that you can do it both directions.
Comment #3
infojunkieYou're right, but in my case, I cannot start with a "Node" table, for other reasons.
Comment #4
infojunkieAttached is a slightly modified version where the new relationship is named after the field's label, instead of the generic "Node" label. This works better when multiple filefields exist.
Comment #5
quicksketchPatch works great. Thanks for your contribution infojunkie! Committed and will be in the 3.3 version.
Comment #6
quicksketch