Closed (fixed)
Project:
File Entity (fieldable files)
Version:
7.x-2.x-dev
Component:
Views integration
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
13 Dec 2013 at 18:14 UTC
Updated:
11 May 2016 at 15:59 UTC
Jump to comment: Most recent, Most recent file


Comments
Comment #1
gmclelland commentedHere is a start. I'm not sure why it is printing the same file name twice with and showing the same file with two different usages?
Maybe someone can import this view and make some quick changes to fix it?
Here is the export of the view:
Comment #2
kmoll commentedComment #3
kmoll commentedI have updated the admin view to display the total usage count for the file as well as re-arranging the fields to match the original page table.
Comment #4
kmoll commentedComment #5
dave reidComment #6
mtnguru commentedThe patch in comment 3 solves the initial problem with the file usage not being displayed. However the order of the columns and the column headers are slightly different.
Column changes:
Comment #7
kmoll commentedOk, I will take a look and re order
Comment #8
kmoll commentedComment #9
kmoll commentedI have updated the view and made the following changes:
Renamed the "Name" column to "Title" to match the non-admin_views page
I have created a single column name "Operations" on the admin_views page to match the non-admin_views page. I did this by hiding the individual 'edit' and 'delete' links and created another field with the "Operations" and re-write the output to display the two links
I have kept the "Uploaded" field as "Updated" to match the non-admin_views page. I believe this is the correct label since the files_managed table only has a timestamp, and if the file is updated, this timestamp is updated. Please correct me if I am wrong about this.
Comment #10
kmoll commentedComment #11
gmclelland commented@kmoll - Just checked the patch in #9 and it looks good, but can you also make the column "Used In" column sortable?
Comment #12
kmoll commentedI have made the "Used In" column sortable
Comment #13
gmclelland commentedThe patch in #12 works for me. Thanks @kmoll
Comment #14
kmoll commentedThis is the same patch as #12, just formatted with git format-patch.
Comment #16
aaron commentedCommitted to http://drupalcode.org/project/file_entity.git/commit/5e9c095.
Comment #18
gmclelland commentedHere is a followup issue to this #2323613: Update admin_views operations provided view to match admin/content/file operations if interested.
Comment #19
kenorb commented