Liquid, JavaScript, themes, sales channels
What is the full app blocks schema?
https://shopify.dev/apps/online-store/theme-app-extensions/extensions-framework#schema shows its similar to https://shopify.dev/themes/architecture/sections/section-schema#app-block-schema but adding the key "blocks" I get the error uploading the app: unknown key 'block
... "blocks": [ { "name": "Slide", "type": "slide", "settings": [ { "type": "image_picker", "id": "image", "label": "Image" } ] } ] {% endschema %}
Refer https://github.com/Shopify/dawn/blob/main/sections/apps.liquid
You just need to use "type": "@app", it will work fine.
Hope it helps!
I'm also curious about this. My app needs to have some repeated blocks. It would be convenient to allow people to manage them in the theme customization area. But the `blocks` attribute doesn't seem to be supported in the `schema` section for an app extension. It would be nice to have a full schema reference so we know what all is available and/or not allowed. The current documentation makes it sound like everything supported by the section schema is also supported in app extensions, but that doesn't seem to be the case.
@emcfarlane @jagthedrummer Did you ever find anything? I am struggling with the same thing.
@LitExtension That is not what they were asking for. When you use the same schema in an Theme App Extension block you get the the following error:
Validation errors │
│ • bundle: [blocks/styles-selector-container.liquid] Invalid tag │
│ 'schema': unknown key 'blocks', │
│ [blocks/styles-selector-container.liquid] Invalid tag 'schema': │
│ unknown key 'presets'
Using @app doesn't help in this case, only when building a section to take app blocks, not within the app block itself.
User | RANK |
---|---|
21 | |
21 | |
9 | |
7 | |
6 |
Explore the 30-30-30 rule, a dynamic social media strategy for new businesses. Learn how t...
By Trevor Sep 20, 2023Discover how to leverage the often overlooked footer of your ecommerce site to gain custom...
By Skye Sep 15, 2023In this blog, we’ll be shining a light on Shopify Partners, Experts, and Affiliates. Who a...
By Imogen Sep 13, 2023