Replies: 4 comments 2 replies
-
|
Hi @bakura, so i understand the idea better, what is the problem you are trying to solve? Is it that the block picker is not specific enough for particular blocks? We have block targeting available https://shopify.dev/docs/storefronts/themes/architecture/blocks/theme-blocks#target-specific-blocks |
Beta Was this translation helpful? Give feedback.
-
|
Hi Stephanie, I’ve explained briefly in my original message, let me give another try. Imagine a theme with hundred blocks (which will be what happen for a complex theme), targeting will become needed everywhere. let’s say we create a Rich text section. This section will only support a subset of blocks (button, paragraph, heading…). This can be achieved in the section itself. however, we for instance have in some themes a rich text section that support having two columns, so you split the content. Of course we could create a dedicated « rich text column » but if we’re starting to go this way to create dedicated blocks for everything, we won’t end up with 100 theme blocks but probably 200 or 300, which I would like to avoid. to solve this I think that having a somehow generic « group » block, with a layout setting to let the merchant control the width of it, would be handful. To make this work, we would need to add this group block to the rich text section itself. But the issue is that once we add the group block to the section; then what blocks will be supported for the group block won’t be any longer controlled by the hosting section. As each section will support different type of blocks, this will be a problem. that’s why I would like that a block could inherit blocks from its parent (so here the group block would only allow the same blocks of the parent section), or alllow in a section schema to override the targets of a child block. |
Beta Was this translation helpful? Give feedback.
-
|
Here is another use case. We're having a few sections where we want merchants to be able to position content on a grid (either top left, top center, top right, center left... and so on). To do that, I'm thinking of creating a generic theme block "Positional content" that just have one setting (its position on the grid). However, here as well, the blocks that the positional content should accept depends on the section. I would like to avoid having to create ton of blocks like "image-with-text-overlay-positional-content", "countdown-positional-content"... and so on. |
Beta Was this translation helpful? Give feedback.
-
|
Great idea. Similarly, I’m keen to hear what you think about “categories” of types overall. I’ve been feeling like @theme / @app / explicitly naming individual block types is not a great dichotomy. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
In the context of a generic "Group" theme block, I think it would be useful to allow a block to inherit the blocks from its parent. For instance, imagine a rich-text section allowing "rich-text", "heading", "button" and "group" theme blocks. We would like to allow grouping only the same theme blocks (and not the full set of blocks).
Beta Was this translation helpful? Give feedback.
All reactions