Closed (fixed)
Project:
Views (for Drupal 7)
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
5 Apr 2009 at 22:33 UTC
Updated:
16 Jun 2009 at 20:00 UTC
Jump to comment: Most recent file
Comments
Comment #1
quicksketchBasically the same as #424642: Format "File: Mimetype" Field. FileField does not own the "files" database table, so it's not really the correct module to adjust the output of that database column.
Comment #2
will_in_wi commentedI assumed that these were two different, though related, feature requests and should be filed as such. If this is not the case, I will make this a dup.
Comment #3
quicksketchNo I think splitting them up is fine. Here's a patch to Views module to make this a selectable option.
Comment #4
merlinofchaos commentedThis patch has a form for an option but does not define the option via options_definition -- this is required.
Comment #5
quicksketchDoh, sorry. Just a quick stab at the request. will_in_wi, perhaps you can try to finish it up?
Comment #6
will_in_wi commentedPerhaps instead of all of this work, I can find a better way to do what I am trying to do. The reason I created these feature requests was that I have a organic groups site. I am trying to allow each group to have a place that they can dump documents. I want to be able to see a list from which you can see the name of the document, a description of the document, the type of document, the size of the document, etc... I also want to be able to make a document private to that group on a single document level. I created a node type with a filefield and was trying to use views to create the list. Is there a better way?
Also, I am not sure if we are confusing the views file listing, or a views node listing with a filefield cck field. I have the latter, and I am trying to show the metadata from a file in that filefield. This is why I thought these feature requests went under the filefield module rather than views. I have tried to create modules for cck2 and views2 in the past and have totally failed due to a lack of documentation, and a lack of time to search through code to figure it out.
Comment #7
dawehneri added the options definition
here is a patch, out of views root
Comment #8
quicksketchwill_in_wi, now you've diverted from your original issue. ;-)
Please open a new support request for your question.
Comment #9
SamRose commentedApplied this patch manually to Views 6.x-2.3 but the format is not showing up. Where should we find this format (I am looking for it in "Content: File field" )?
Comment #10
quicksketchSamRose, you have to make a relationship to the Files table by adding a Content: File field relationship, then adding a File: Filesize field.
Comment #11
SamRose commentedWorks! Although, I do get a strange error that seems to be referring to javascript error:
But, that may not have anything to do with patch above. other than that, it worked
Comment #12
merlinofchaos commentedThat error doesn't seem to have anything to do with the patch, I don't think. Committed.