Short description of issue
Isn’t it possible with nested section settings for global blocks
Reproduction steps
Am I ***** or isn’t it possible to nest blocks in sections with presets? A typical global block would of course need different presets in different context
{% schema %}
{
“name”: “Main Product”,
“enabled_on”: {
“templates”: [“product”]
},
“limit”: 1,
“settings”: [
{
“type”: “checkbox”,
“id”: “customizable”,
“label”: “Customizable”,
“default”: true
}
],
“blocks”: [
{ “type”: “@theme” },
{ “type”: “@app” }
],
“presets”: [
{
“name”: “Main Product”,
“category”: “Product”,
“blocks”: [
{
“type”: “block-drawer”,
“static”: true,
“id”: “block-drawer”,
“blocks”: [
{
“type”: “block-title”,
“settings”: {
“title”: “Product Information”
“content”: {{ clostest.product.description }}
}
}
]
}
]
}
]
}
{% endschema %}
Additional info
Not sure I’m just not getting it, but for me it feels totally counter intuitive not to have the possibility to run the presets of blocks from where they are called. As context is the defintion of preset. In above example I could want a title and description as a preset on a drawer when called on the product section, but something completly different when used on section collection:
I’m not sure I’m just not getting the syntax or if this just isn’t possible.
What type of topic is this
General discussion