Viewing 4 reply threads
  • Author
    Posts
    • #5699
      jivedig
      Member

      My first post! New to Piklist, but years deep in ACF/CMB2. I’m becoming a convert 😉

      I have a front end form to create a CPT. All works fine, including setting a featured image. The only thing not working is file upload field validation and default WP media uploader.

      My field is:

      piklist('field', array(
        'type'        => 'file',
        'scope'       => 'post_meta',
        'field'       => '_thumbnail_id',
        'label'       => __('Featured Image','piklist'),
        'options'     => array(
          'modal_title' => __('Add File(s)','piklist'),
          'button'      => __('Add','piklist'),
        ),
        'validate' => array(
          array(
            'type'    => 'limit',
            'options' => array(
              'min'     => 1,
              'max'     => 1,
            ),
          ),
          array(
            'type' => 'image',
          ),
        ),
      ));
      

      It’s still showing the basic uploader and it’s still allowing me to upload zip and php (non-image) files.
      I’m using version 0.9.9.7
      Thanks!

    • #5702
      Steve
      Keymaster

      @jivedig– Welcome all ACF/CMB2 converts!

      Seriously, welcome to the Piklist community. Currently, only the basic file upload field can be used on front-end forms. We have not brought the media uploader to the front yet.

      We were able to verify the image validation bug you found. We’ll work on getting it fixed for the next version of Piklist.

    • #5804
      gfard
      Member

      Dear Steve and jivdig,

      I am in the process of learning this new framework and to make a small pilot for my thesis of my university and to present this to my fellow students.
      I read that it is not possible to upload media files from front-end.

      – Would you mind proposing any possible solution or plugin for this issue until you update your framework?
      -For example is this possible with an Form wordpress plugin like Gravity Forms, to create Custom Posts, created by Piklist?

      Thanks a lot for your time.

    • #5807
      jivedig
      Member

      @gfard: Front end posting and editing of Custom Post Types via Piklist is 100% working in the latest version of Piklist trunk. I seemed to have uncovered a minor bug in custom validation with the image field, but I definitely have an image field mapped to the CPT featured image, and it’s working well.

    • #5811
      gfard
      Member

      @jivedig Thanks for your answer!
      I am trying to learn how to use this framework but I am struggling from the basics.

      -Are you aware of any plugin for creating templates quick and it works well with Piklist?
      -Perhaps Visual Composer for example?

      Kind regards,
      George!

      • #5815
        jivedig
        Member

        @gfard Piklist is def a developer framework, though it seems to be made in a way that makes it really fast to setup powerful stuff with minimal code. Activating the demos included in Piklist was really helpful for me to get a head start on building specific metaboxes/forms/etc.

        If you’re not a coder, i’m not sure what to recommend. Maybe wait until the GUI inteface plugin is complete. That may help you. But, even if you have a UI for building forms/metaboxes, you’ll still need to code to display that data how you want, for the most part.

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