Help with pagemediaselect multiple images

Hi,

I’ve extended the default page form with a pagemediaselect field with the multiple: true attribute. However, when I select multiple images and then save the page, the entries are replaced with just the word “Array” in both the Admin dashboard as well as the .md page file.

What am I doing wrong?

Thanks!

title: Test

@extends’:
type: default
context: blueprints://pages

form:
fields:
tabs:
type: tabs
active: 1

  fields:
    content:
      fields:

        header.slogan:
          type: text
          style: vertical
          label: Slogan
          ordering@: header.title

        header.gallery:
            type: pagemediaselect
            style: vertical
            label: Page Gallery
            multiple: true

image

1 Like

So you created a separate blueprint file with the code you posted correct? And where did you place the file in your folder structure?

Yup, correct. user/blueprints/pages/home.yaml. The blueprint itself seems to be working as my “header.slogan” field specified in the same blueprint works fine. It’s just the header.gallery pagemediaselect field that I’m having trouble with, as specified above.