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

quicksketch’s picture

This 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.

quicksketch’s picture

Status: Active » Closed (fixed)