Tagged: , ,

Viewing 10 reply threads
  • Author
    Posts
    • #6454
      jivedig
      Member

      Hey 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?

    • #6455
      Jason
      Keymaster

      Hey @jivedig!

      Just thinking through this, but since the file field supports multiple files to be selected, I assume this would only happen if a single file was selected? I often limit a file field to a single file, so it makes sense.

    • #6457
      jivedig
      Member

      Even 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.
    • #6459
      Jason
      Keymaster

      Ah, 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?

    • #6460
      jivedig
      Member

      Sorry i’m probably not explaining correctly.

      Attached a screenshot to hopefully clarify.

      Attachments:
      You must be logged in to view attached files.
    • #6462
      Jason
      Keymaster

      Ah.. that makes sense. Good thought! I’ll make a feature request ticket for this.

    • #6463
      jivedig
      Member

      Thanks! 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.

    • #6468
      Steve
      Keymaster

      @jivedig– I believe we modeled our upload file on the “Featured Image” field in WordPress. They should both work the same.

    • #6472
      jivedig
      Member

      It’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?

    • #6475
      Steve
      Keymaster

      Yea, I see it. Jason already put in the request. Thanks

    • #6477
      jivedig
      Member

      Rock on. Thanks Steve (and Jason)!

Viewing 10 reply threads
  • You must be logged in to reply to this topic.