Make WordPress Core

Opened 10 years ago

Last modified 5 years ago

#28185 new enhancement

Expose image attachment title and/or filename in the image details modal

Reported by: drrobotnik's profile drrobotnik Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.9
Component: Media Keywords: has-patch dev-feedback
Focuses: ui, javascript, administration Cc:

Description

I ran into a case where I had a post with an image I wanted to set as the featured thumbnail. My Media library is very large and I didn't know the file name so I clicked the edit icon on the image to view the Image Details. Nowhere within the image details does it show either the image title, or file name. My suggestion would be to place it next to the words "Image Details", but i'm not married to the idea.

The search field in the media library looks for these attributes to filter the library list, it would be convenient if it were clearly labelled within the "Image Details" modal.

Additionally, once you do find the image in the media library, both the file name and image title are clearly visible.

I created an annotated video to clearly explain the issue:
https://www.youtube.com/watch?v=lS55abTV7qc

Attachments (6)

28185.diff (808 bytes) - added by kevdotbadger 9 years ago.
Screenshot 2015-01-07 15.11.14.png (332.1 KB) - added by kevdotbadger 9 years ago.
28185.2.diff (1.1 KB) - added by kevdotbadger 9 years ago.
media-template.php (43.6 KB) - added by kevdotbadger 9 years ago.
28185.3.diff (4.2 KB) - added by kevdotbadger 9 years ago.
28185.4.diff (1.1 KB) - added by kevdotbadger 9 years ago.

Download all attachments as: .zip

Change History (20)

#1 @drrobotnik
10 years ago

Right after I posted I saw that from the select menu, you can choose images uploaded to this post, but I think the title should still be visible from Image Details.

#2 @celloexpressions
10 years ago

  • Component changed from Customize to Media
  • Focuses javascript added; accessibility removed
  • Keywords needs-patch added
  • Summary changed from No Quick/Easy way to find image in post contents title/filename to Expose image attachment title and/or filename in the image details modal
  • Version changed from trunk to 3.9

It looks like this is more along the lines of what you're suggesting, based on your video. I think it would be a good idea to expose at least the url of the image, as we have that data anyway. Title would be nice, but non-editable.

#3 @wonderboymusic
9 years ago

  • Milestone changed from Awaiting Review to 4.2

@kevdotbadger
9 years ago

#4 @kevdotbadger
9 years ago

  • Keywords has-patch dev-feedback added; needs-patch removed

Not only do we have the url, we also have most of the attachment data in {{ data.attachment }}, so it'll be easy to show both the title and the URL, which is what 28185.diff does.

#5 @helen
9 years ago

Images can be non-attachments/external URLs - those fields should not show if it's not an attachment, and if the URL is in the data (it's not for non-attachments) and shown, it begs the question: should it be an editable field in the non-attachment situation, the way you can edit the href of a link? Is that duality confusing for users?

@kevdotbadger
9 years ago

@kevdotbadger
9 years ago

@kevdotbadger
9 years ago

#6 @kevdotbadger
9 years ago

Excuse most of those files (can i delete them?) 28185.4.diff contains the correct patch!!

As Helen pointed out, images from URLs have different fields.

  • Attachments show the Title and URL, uneditable (readonly).
  • Non-attachment/external images shows the URL, which can be amended inthe popup viewer.

What does everyone think of this?

#7 @drrobotnik
9 years ago

Does what I was looking for!

The interface is so similar, I don't think it causes confusion.

This ticket was mentioned in Slack in #core by drew. View the logs.


9 years ago

This ticket was mentioned in Slack in #core by drew. View the logs.


9 years ago

#10 @helen
9 years ago

I would consider putting the title elsewhere and not represent it as an editable field or an attribute. Perhaps with the image itself. I'm also not sure about changing the URL for non-attachments - I think this will lead to a fair bit of user confusion, as in "why can I do this here but not there". The split between an attachment and its existence as content-in-a-post is already quite tricky conceptually.

This ticket was mentioned in Slack in #core by drew. View the logs.


9 years ago

This ticket was mentioned in Slack in #core by drew. View the logs.


9 years ago

#13 @DrewAPicture
9 years ago

  • Milestone changed from 4.2 to Future Release

There still isn't a consensus on how this should be handled. Could probably benefit from some addition UX feedback and/or user tests to set expectations.

Pushing to a future release.

#14 @drrobotnik
9 years ago

My original annotation mentioned putting the title up in the prominent "Image Details" area. The fields being added to the edit image modal were a "nice to have", but not actually required in order to close out this issue.

If it's confusing, I'd say put it up in the top or on the right hand side possibly below the image as helen suggested.

Note: See TracTickets for help on using tickets.