-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New Block Layouts #6993
Comments
(Vaguely related to #6895, which I think will be necessary to get full front-end cross-browser compatibility on some of these layouts.) |
Other related issues:
|
…t the default block (#7226) Fixes part of #6569. Part of a general polishing to get #6993. Insertion point was violating the allowedBlocks restriction of the parent block. The insertion point always inserts the default block and it may not be possible to insert the default block. This PR makes sure insertion point only appears if it is possible to insert the default block.
We have one of these blocks implemented. Moving the rest as something to revisit for phase 2. cc @alexislloyd |
Thanks @mtias! I would also suggest that we refer to these as "complex blocks" (i.e. blocks containing multiple blocks to achieve a common pattern), to distinguish them from "simple blocks" (blocks that contain only one block) and from "templates" (which apply to the entire page layout). |
Also themes should be able to register a layout for their templates. |
This is now possible using Block Patterns so I'll go ahead and close this ticket. 👍 |
Since adding templates last year we have been working on various features related to the ability to compose multiple blocks together.
InnerBlocks
has been our for a bit, with refinements to the design and interactions. The Child Block API will be released with 3.0, allowing block authors to create relationships between blocks, and so on.Given this updates, the editor is already quite flexible in achieving some common layouts by combining pieces. With the addition of the container block, this would expand further. Yet, there's still room for another piece of the puzzle: creating some layout blocks that function as shortcuts for achieving common design patterns. These are not to be confused with templates — which apply to the whole page setup.
@melchoyce explored some in quick mockups: https://cloudup.com/cNXrAMW7FBY
The idea is we can create some of these as registered blocks, available under the "Layout" group, and it'd leverage nested blocks to offer a ready-made unit. Creating this should also push us to refine template locking so that it can be applied at a group level, not only via template registration.
The text was updated successfully, but these errors were encountered: