Looking for usecases #20
Replies: 6 comments 2 replies
-
@miazbikowski I'm going through and trying to list a load of use-cases, but wondering, in these examples of private vs public blocks. Are they all theme blocks? If so, can private blocks get passed any attributes from the container like standard 2.0 blocks can still access the section object or are theme blocks always restricted to theme settings and block settings only. Is there a concept of a required block, or can there be? |
Beta Was this translation helpful? Give feedback.
-
Hi @dhruveonmars - thank you for your questions! This concept of a public/private theme block would be only for theme blocks, yes. It would be a way to ensure some more restrictive containers only allow adding certain blocks. For example, a slideshow might only want to permit slides to be added. This is because we can reasonably assume, given our own in-house theme prototyping, that the javascript would break if any other block were added to the slideshow. This concept of private/public blocks has no impact on the scoping of theme blocks (what they have access to). [Or rather, that would hopefully be a separate conversation, unless you believe there is a valid reason why these two concepts cannot be extricated] As for required blocks, that is something my colleagues are looking into, separate from the concept of public/private blocks since it serves different usecases. I hope that helps! |
Beta Was this translation helpful? Give feedback.
-
A native built in custom-liquid section that has access to all 'public' blocks. |
Beta Was this translation helpful? Give feedback.
-
Spitball on the syntax of the allow/disallow lists,
|
Beta Was this translation helpful? Give feedback.
-
Examples
|
Beta Was this translation helpful? Give feedback.
-
DX of editing allow/disallow entries, In how many places could I end up having to editing to switch out this file reference. |
Beta Was this translation helpful? Give feedback.
-
Hello partners,
We’ve outlined certain cases for restrictions we believe would make sense to have:
(Note: for brevity, a container is a section or a block which can contain other blocks)
We are also trying to identify cases in which “allowances” (when you’re allowing a block) should be inherited by blocks at all levels of nesting, versus cases where these should only affect the container’s immediate children. For example: “I’m a Featured Product section and I’ve allowed certain private blocks. I want these to be useable even in my nested blocks.” VS “I’m a slideshow, I allow only slide blocks. I don’t want to allow any of my nested blocks to allow slides.” (This allowance shouldn’t trickle down)
We want to make sure we cover any and all use cases which you believe you might come across.
We would appreciate your input with cases of your own such that we will not limit ourselves with cases present only in our in-house built themes.
Your participation is much appreciated. Thank you!
Beta Was this translation helpful? Give feedback.
All reactions