Tagged: ,

Viewing 8 reply threads
  • Author
    Posts
    • #5978
      tiberiur
      Participant

      Hi guys,

      First of all, Piklist rocks! I’m facing with some issue on file/upload_media field.

      1) When you delete all items from gallery, it still remains an empty string instead of NULL
      array(1) { [0]=> string(0) “” }

      With the basic file type, it’s work well.

      2. You make a condition for file field based on select field. You upload some picture and then you hide the file field. All string become empty and remains there.

      I use metaboxes on pages.

      Thanks,

    • #5980
      tiberiur
      Participant

      I’ve updated my plugin to v0.9.9.6.

      Love the new way with workflow tabs configuration.
      Another issue with repetitive widget groups was solve, that’s impressive.

      About initial described issue, now I can’t delete the last image. I’ve tried to do that directly from Custom Fields panel, but when I’ve updated my post, the field appeared again but with no value (as empty string).

      Thanks!

    • #5982
      Steve
      Keymaster

      @tiberiur– Welcome to the Piklist community!

      Just to be clear, when you upload multiple images via the media uploader, you can’t delete the last image uploaded? Is this for existing posts, new posts, or both?

    • #5984
      tiberiur
      Participant

      A video is worth 10.000 words.

      1) First issue: https://dl.dropboxusercontent.com/u/10268282/ShareX/2016/02/2016-02-22_17-52-54.mp4
      2) Conditional issue: https://dl.dropboxusercontent.com/u/10268282/ShareX/2016/02/2016-02-22_17-56-17.mp4

      My code snippet:

      piklist('field', array(
          'type' => 'select'
          ,'field' => 'page_hero_show'
          ,'label' => 'Use hero?'
          ,'choices' => array(
              'show' => 'Yes'
              ,'hide' => 'No'
          )
      ));
      
      piklist('field', array(
          'type' => 'file'
          ,'field' => 'page_hero'
          ,'label' => __('Images', 'plugin')
          ,'description' => 'You can add as many images as you want, and they can be drag-and-dropped into the order that you would like them to appear.'
          ,'conditions' => array(
              array(
                  'field' => 'page_hero_show'
                  ,'value' => 'show'
              )
          )
      ));
    • #7393
      zsoltr
      Participant

      I have the exact same problem with the ‘file’ field. Upload 3 images try to delete them and you will end up with one of the images in the gallery and you cannot delete it. If you delete it simultaneously using also the custom field editor and save it, you will end up with an empty string.

    • #7420
      Steve
      Keymaster

      This is a known issue and should be addressed in the next major version of Piklist.

    • #7432
      eddie2390
      Participant

      I have this problem :/

      When will the upgrade?

    • #7433
      eddie2390
      Participant

      Any temporary solution?

    • #7522
      Jason
      Keymaster

      The most reliable way of fixing this is to use remove_post_type_support to remove the custom-fields feature for the page/post post types. Also, make sure not to add that for your own custom post types. It’s problematic with Piklist as it writes over the meta immediately after Piklist writes to it.

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