Remove the custom library code and completely replace it with the view. We have basic views support (see #1224766: Remove default media browser and replace with a default view), and once the Views Library is a bit more stable we want to remove the custom library code. Lowering priority until some other tasks are completed.

Comments

askibinski’s picture

I attached a view that mimics the module's media library page at admin/content/file.
See the screenshots for examples.

It requires:

Points of attention:

  • Add file doesn't work because page lacks the js
  • Probably get rid of the exposed filter (I used it to arrange media in libraries using terms)
  • Probably have a look at the IX design here: #865006: Designs for library and wysiwyg

Also, the edit and delete links are now custom fields, it would be cleaner if file_entity would provide these view fields.

dave reid’s picture

Status: Active » Postponed

@askibinski: This is a separate issue than intended. This is to remove the old Media browser library plugin, and you have posted code to replace admin/content/file/media with a View, which need to be a different issue.

dave reid’s picture

jenlampton’s picture

What tasks are the blockers for removing the custom Library tab?

dave reid’s picture

I...just linked to it.

jenlampton’s picture

Hello cache. Thx :)

askibinski’s picture

Just FYI:
Personally, I dropped the whole views approach and found that
http://drupal.org/project/media_browser_plus
has got a far better solution. Even with drag-n-drop to different libraries, which I don't see happen in Views in the near future.

dave reid’s picture

Priority: Minor » Major
Status: Postponed » Active
Issue tags: +sprint, +Media Initiative

Moving this as a major task for next week's DrupalCon sprint. It would be really good to get rid of this code.

devin carlson’s picture

Title: Replace Custom Library with View » Remove old media browser library plugin
Assigned: Unassigned » devin carlson
Status: Active » Needs review
StatusFileSize
new10.88 KB

The attached patch removes the old library code.

johnpitcairn’s picture

Does this still depend on #1293908: Respect file type restrictions in media browser library view ? I wouldn't want to see the library go away before file type restrictions are good for fields. Hopefully for wysiwyg too.

dave reid’s picture

Status: Needs review » Fixed

This has been committed and fixed along with #1293908: Respect file type restrictions in media browser library view with http://drupalcode.org/project/media.git/commit/9bce5cc. Thank you everyone for your work on this issue! We finally got rid of a bunch of old code!

Automatically closed -- issue fixed for 2 weeks with no activity.