Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

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)