Closed (fixed)
Project:
FileField
Version:
6.x-3.2
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
25 Nov 2009 at 12:36 UTC
Updated:
29 Apr 2010 at 02:00 UTC
Following the advice given at http://drupal.org/node/543132, I can successfully theme a views row containing a filefield using the relationship. However, if the filefield on the content creation page allows more than 1 file to be uploaded, the method above for outputting all files fails, or produces a duplicate row. I'm not sure if this is a views issue or a filefield issue, but posting here for further advice etc.
Thanks
Comments
Comment #1
quicksketchThis is intended behavior, since it's the way database queries work. You cannot make a relationship over to the Files table and have it not create duplicates. Instead you can remove the relationship and just use the "Content: [Field name]" field and check the option to "Group multiple items". Note that this simply changes the problem by doing an additional SQL query per row and showing all the files together, so it's a lot less efficient.
Comment #2
quicksketch