Replies: 5 comments 8 replies
-
|
One of the way to do that at the moment would be to use targeting. So that your section is specifically supporting certain blocks. And if those aren't supporting any nesting then that'd be the way to do it. {% schema %}
{
"name": "Slideshow",
"class": "section--has-background",
"blocks": [{ "type": "slide" }], <-- targeting
"settings": [ |
Beta Was this translation helpful? Give feedback.
-
|
@sarussss you can set |
Beta Was this translation helpful? Give feedback.
-
|
Insane this wasn't part of the initial release |
Beta Was this translation helpful? Give feedback.
-
|
Hu @ludoboludo and @mxstbr, I'm a bit surprised this issue has been open for quite some time—I only came across it now via this related comment. In my view, setting a limit on nested blocks feels like a fundamental feature. For example, I have a private "buy button" block that should be draggable into a private "group" block within the theme. However, this button block should only be allowed once. Right now, there's no native way to enforce that constraint, which makes structuring these kinds of components much trickier than it should be. What is the status about this? p.s. would be nice to have something like |
Beta Was this translation helpful? Give feedback.
-
|
@ludoboludo Hi there, |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Is it possible to limit blocks on theme blocks like on section blocks?
Limit: The number of blocks of this type that can be used.
Beta Was this translation helpful? Give feedback.
All reactions