Tagged: edit image, file, image
- This topic has 10 replies, 3 voices, and was last updated 5 years, 9 months ago by
jivedig.
-
AuthorPosts
-
-
May 9, 2016 at 3:30 pm #6454
jivedigMemberHey guys, still loving Piklist 🙂
When using the file field type for image uploads, it would be much more convenient (and natural UX) when clicking the preview image for it display the already selected image, so we can edit the alt/description/caption/etc. Currently clicking the image brings up the media modal and requires us to re-select the image (sometimes it’s buried down in the media list) just to edit the images attributes.
Any plans or solutions to this issue?
-
May 9, 2016 at 4:30 pm #6455
-
May 9, 2016 at 4:42 pm #6457
jivedigMemberEven if there were multiple images, clicking on the already uploaded image should bring me to the modal where i can edit the title/alt/caption associated with that image. Same window as when you click an existing image in the media uploader. See attached screenshot for the modal that I would expect to open when clicking an already uploaded file.
Attachments:
You must be logged in to view attached files. -
May 9, 2016 at 4:48 pm #6459
JasonKeymasterAh, so you’re saying that to add new files you’d need to click on the button again. Clicking on the files themselves just brings up the single attachment modal?
-
May 9, 2016 at 4:51 pm #6460
-
May 9, 2016 at 5:31 pm #6462
JasonKeymasterAh.. that makes sense. Good thought! I’ll make a feature request ticket for this.
-
May 9, 2016 at 5:55 pm #6463
jivedigMemberThanks! Without spending a ton of time, I found a workaround.
This checks if there is an image, then creates a button that sends you to the edit image page.$cat_id = isset($_GET['tag_ID']) && ! empty($_GET['tag_ID']) ? absint($_GET['tag_ID']) : ''; $image = ''; if ( $cat_id ) { $image = get_term_meta( $cat_id, 'll_term_image', true ); } if ( $image ) { echo '<p><a target="_blank" class="button" href="' . get_edit_post_link( $image ) . '">Edit current image in new window</a></p>'; }Mind you, this is term meta on categories for me. But you get the idea.
-
May 10, 2016 at 10:33 am #6468
-
May 10, 2016 at 10:59 am #6472
jivedigMemberIt’s definitely not working the same for me though. When I click an existing featured image in the Featured Image metabox, it opens the featured image modal with the existing featured image already selected, so I can edit title/alt/desc/etc.
When I click the existing image in the Piklist file upload field it opens the modal with no image selected. So I have to find and re-select my image in order to edit the title/alt/desc.
Are you seeing differently? Maybe this only happens on term meta?
-
May 10, 2016 at 2:59 pm #6475
SteveKeymasterYea, I see it. Jason already put in the request. Thanks
-
May 10, 2016 at 3:10 pm #6477
jivedigMemberRock on. Thanks Steve (and Jason)!
-
-
AuthorPosts
- You must be logged in to reply to this topic.