Replies: 5 comments 2 replies
-
This is somehow related to this: #73 The complete opacity of theme blocks from the parent section is extremely limitating. If a section would allow blocks that can accept theme blocks, then at least the consuming section could access settings from the first level of blocks... |
Beta Was this translation helpful? Give feedback.
-
Thank you for sharing this. the idea for Section blocks to accept Theme Blocks is interesting. The team is going to revisit the decision to prevent Section and theme blocks from being in the same section. We are curious to understand more use cases of when sections and theme blocks will need to be together. We had previously considered it to be a solution that would ease initial adoption of theme blocks while migrating from sections to theme blocks. However, it seemed like a poor choice to design an API for a single time migration. Please keep sharing your feedback, It will help us as we revisit this decision |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Strongly agree with @bakura10 here. It doesn't make sense to have to migrate existing blocks to new theme blocks when they really only ever get used in one section (eg. slide for the slideshow or buy-buttons for the main-product section). You'd so rarely use these outside those sections, why reform the entire structure to make them more portable elsewhere. Whereas it would be very useful to be able to insert more common elements (eg. headings, text, content cards) across the theme and integrate them into existing blocks. This would also make it much easier to adapt existing instances of Dawn and would probably be a route to including theme blocks in the next major version of Dawn without breaking users' existing settings. |
Beta Was this translation helpful? Give feedback.
-
actually, section blocks and theme blocks must work together to combine current flexibility and abilities of section blocks with component like approach of theme blocks. i can share an example of this need: also, i think this method will provide faster transition of current themes. |
Beta Was this translation helpful? Give feedback.
-
Hi,
As of today, a section can either have section block, or have theme blocks, but the two can't be mixed. I can understand the technical limitations around that, however it would be very useful for a section block to accept blocks. A typical use case would be a section-specific block (for instance a block that could have special positioning inside the section) but whose content would be driven by existing theme blocks.
The schema would be like this:
To render:
cc @benjaminsehl
Beta Was this translation helpful? Give feedback.
All reactions