multiple blocks in multiple blocks shopify section schema?

Alex138
Shopify Partner
2 0 4

On site i have repeated section, that include image gallery. I try to create each section using blocks in schema, and then add to every blocks another blocks, to add gallery. but i have error in my variant. 

{% schema %}
  {
    "name": "Applications",
    "class": "page-application-block",
    "max_blocks": 30,
	"blocks": [
      {
        "type": "image",
        "name": "Application section",
        "settings": [
          {
            "type": "image_picker",
            "id": "image",
            "label": "Image"
          },
          {
            "type": "text",
            "id": "title",
            "label": "Heading",
            "default": "Image slide"
          },
          {
            "type": "richtext",
            "id": "slide_content",
            "label": "Slide Content"
          }
        ],
  		"blocks": [
          {
            "type": "image",
        	"name": "Application gallery",
            "settings": [
              {
                "type": "image_picker",
                "id": "image_gall",
                "label": "Image"
              }
            ]
          }
        ]
      }
    ],
    "presets": [{
      "name": "Applications",
      "category": "Image",
      "blocks": [
        {
          "type": "image"
        }
      ]
    }]
  }
{% endschema %}

Is there any way to create what i wont?

AuralFetish
Excursionist
26 0 3

I realize this was 3 years ago, but it kills me to see people asking for help who were never responded to. In this case, Alex, no, you can't nest blocks.  One section can only have one schema. One schema can only have one blocks. Sections can't be nested or reused. 

I can't understand why someone from Shopify can't simply go thru unsolved posts and respond.

Hell, they could just copy and paste a boilerplate, "Not at this time, but we'll ask engineering to consider adding that feature. Typically, such features are only considered if they can be shown to directly grow Shopify's revenue, and this is rarely the case because we make so much money from 'apps.' The best thing you can do right now is deal with it."

This question, like so many others on this board, has literally just sat unanswered for 3 years. We would all do well to remember this, the next time we wonder why Shopify hasn't added a particular feature – they simply don't care.


0 Likes