Closed (won't fix)
Project:
Views (for Drupal 7)
Version:
6.x-2.x-dev
Component:
Code
Priority:
Minor
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
25 Jun 2008 at 15:00 UTC
Updated:
25 Sep 2009 at 17:15 UTC
There are no default Views where 'files' is the base table. Perhaps a filebrowser which lists files per taxonomy term and lets you descend down the tree. Or something simpler :)
I am trying to ship OG with a File Library block for each group and can't figure out add an argument for a specific OG node. The argument list is tiny for files. I am going to attack this as a node listing and see if I have better luck. But anyway, the feature request stands.
Comments
Comment #1
merlinofchaos commentedHmm. Maybe.
The argument list is pretty small for files because most of the data for a file is really on the node. If you create a relationship from the node to upload to file, and then put the argument for the node, you're fine. You can also do this the other way around. Create a File view; add a relationship to the upload table and relate that to the node table, and you can then add a node: nid argument.
One consequence of the way that data was changed in D6 is that if you have two different modules that upload files to nodes, you won't be able to list them together anymore because files can no longer be directly related to node; it requires that intermediary table (in this case, upload) for this to work.
I'm not completely sure it's a good idea to include a default file library view because of the vagaries here, but I'll think about it.
(The real problem here is that it's not rezlly obvious that you need to use relationships this way, and I'm not entirely happy that the 'nid' field was removed from files. It could've been left there and simply not required.)
Comment #2
FunkMonkey commentedI just ran into the problem where I couldn't see how to create a File or Node view that included fields from the other. And here it is answered. Thanks for the information on chaining relationships.. that helps. No need to add another issue now.
More on topic: As you stated, it is a bit confusing to use the relationships that way. Would adding a 'file library' view effectively provide an example that folks could use to understand the relationships a bit better? Perhaps the view description could specifically mention how the relationships work. I would have spent hours and hours on this if I hadn't seen this post. I imagine others will be lost as well without this information. Thanks.
Comment #3
moshe weitzman commentedJust for the record, the way to do this is not through relationships. Just create a node listing and add the fields from upload module. You actually cannot do this starting with a file listing because there is no relationship at present back to node. There are actually no relationships from files.
Comment #4
merlinofchaos commentedAfter a year, it is clear that this feature is not going to happen.