Filepicker/pagemediaselect returns empty


#1

Hi there,
I’m having some trouble with filepicker and pagemediaselect.
When I pick multiple images using ‘pagemediaselect’ the form returns empty. But when looking at the frontmatter the files are there, and it’s rendered on the website. The same goes for filepicker. I’ve tried with validate: commalist - but it doesn’t work eater.

Picking images:

After saving:

          fields:
            .headline:
             title: headline
             type: text
             label: Headline
            .images:
              type: pagemediaselect
              preview_images: true
              label: Images
              multiple: true
              validate:
                type: array

#2

Hi,

I’m having an issue as well.
but in my case I can get the following error on save:

Twig_Error_Runtime
An exception has been thrown during the rendering of a template ("Array to string conversion").
    /Applications/MAMP/htdocs/bbq/user/plugins/admin/themes/grav/templates/forms/fields/filepicker/filepicker.html.twig

{% embed "forms/fields/select/select.html.twig" %}
 
    {% block input %}
        {% if not field.options and value %}
            {% set field = field|merge({options: {(value): value}}) %}
        {% endif %}
        {{ parent() }}
    {% endblock %}
 
    {% block global_attributes %}
        data-grav-filepicker
        data-name="{{field.name}}"
        {% if field.preview_images %}data-preview-images{% endif %}
        data-value="{{value}}"
        {{ parent() }}
    {% endblock %}
{% endembed %}

and if I set the validation type to commalist I get the same error.

Am I missing something?

And here is yaml

header.gallery-four:
  type: pagemediaselect
  preview_images: true
  label: Images
  multiple: true
  validate:
    type: commalist