Allow media file's fields to be edited in a modal or after upload in the media widget

Created on 8 July 2011, about 14 years ago
Updated 11 July 2025, 22 days ago

There were a few issue with the current widget that were road blocks on our project and things seemed to be in flux with current widget so we set put to build a new one aimed at using views as browsers and with a way to edit meta data of the media.

I have a working (if buggy) module on git hub.
https://github.com/phase2/media_views_widget
git://github.com/phase2/media_views_widget.git

It provides the media field with

  • a preview of the media,
  • a select button (which opens the views browser, and an upload new tab)
  • a meta data button (which opens a dialog to edit the meta data of the image
  • and a remove button which removes the current media from the field

there are some known bugs with the current code

  • issue with multiple item fields
  • ajax exposed filter on views does not work on first page

The field is built with each of the buttons set to an ajax call and refresh the field, there is also an empty div that is sent along. This div becomes the dialog on the insert and meta data button calls.

I am hoping this could be incorporated as a alternative widget to the main media widget

✨ Feature request
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States e2thex

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • There were a few issue with the current widget that were road blocks on our project and things seemed to be in flux with current widget so we set put to build a new one aimed at using views as browsers and with a way to edit meta data of the media.

    I have a working (if buggy) module on git hub.
    https://github.com/phase2/media_views_widget
    git://github.com/phase2/media_views_widget.git

    It provides the media field with

    a preview of the media,
    a select button (which opens the views browser, and an upload new tab)
    a meta data button (which opens a dialog to edit the meta data of the image
    and a remove button which removes the current media from the field
    there are some known bugs with the current code. for more information visit there site https://makca.co

    issue with multiple item fields
    ajax exposed filter on views does not work on first page
    The field is built with each of the buttons set to an ajax call and refresh the field, there is also an empty div that is sent along. This div becomes the dialog on the insert and meta data button calls.

    I am hoping this could be incorporated as a alternative widget to the main media widget

    Comment File Size Author
    #107 media-editing_metadata-1213252-107.patch 4.2 KB yuriy.babenko
    #103 media-editing_metadata-1213252-103.patch 6.89 KB yuriy.babenko
    #85 ctools_dependency-1213252-85.patch 319 bytes tsvenson
    #80 1213252-media-edit-modal.patch 11.35 KB dave reid
    #78 screenshot.PNG 108.29 KB jerryitt

Production build 0.71.5 2024