Multiple image picker in blocks

Multiple image picker in blocks

Flafi87
Shopify Partner
11 1 6

Hello Shopify Community and developers at Shopify!

Previously it was possible to add multiple images to a custom liquid file/element in the editor with the option of multiple blocks. I just had to add blocks in the schema and I could loop through them in section.blocks . Now this is not working in the theme app extension. How can I achieve the same or similar end result now?

 

 

{% for block in section.blocks %}
  "blocks": [
    {
      "name": "Image",
      "type": "image_picker",
      "limit": 12,
      "settings": [
        {
          "type": "image_picker",
          "id": "lb_logo",
          "label": "image"
        },
        {
          "type": "url",
          "id": "lb_link",
          "label": "Link"
        }
      ]
    }
  ],

 

 

Replies 0 (0)