Problem/Motivation
I suggest supporting adding inline blocks in the predefined layouts, so when creating a new node using this layout it will automatically create a clone for the existing inline blocks in the layout.
Steps to reproduce
1- Create a custom block called accordion.
2- Create another custom block called the accordion section.
3- Add the entity reference field to the accordion block to reference the accordion section block.
4- Create a new layout from the layout library.
5- Add an accordion block to a section.
6- Create a node with the created layout.
7- It will create the accordion block but it will keep using the original accordion sections (inline-block) that are used in the layout.
Proposed resolution
There is exist issue opened for layout library module, and we can use the patch from it for now. #3273160: Support inline blocks in layout
Remaining tasks
- ✅ File an issue about this project
- ✅ Addition/Change/Update/Fix to this project
- ✅ Testing to ensure no regression
- ➖ Automated unit/functional testing coverage
- ➖ Developer Documentation support on feature change/addition
- ➖ User Guide Documentation support on feature change/addition
- ➖ Accessibility and Readability
- ✅ Code review from 1 Varbase core team member
- ✅ Full testing and approval
- ✅ Credit contributors
- ✅ Review with the product owner
- ✅ Update Release Notes and Update Helper on new feature change/addition
- ✅ Release varbase-9.0.6, varbase_layout_builder-10.0.12, varbase_layout_builder-9.0.4
Varbase update type
- ✅ No Update
- ➖ Optional Update
- ➖ Forced Update
- ➖ Forced Update if Unchanged
User interface changes
- N/A
API changes
- N/A
Data model changes
- N/A
Release notes snippet
- Issue #3274455 by Odai Atieh: Added support to automatically create a clone for the existing inline blocks in the layout in Layout Library
Issue fork varbase_layout_builder-3274455
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3274455-support-inline-blocks
changes, plain diff MR !25
Comments
Comment #3
odai atiehComment #4
rajab natshahComment #7
rajab natshahComment #8
rajab natshahComment #9
rajab natshahComment #11
rajab natshahComment #13
rajab natshahComment #14
rajab natshah✅ Released varbase_layout_builder-9.0.4
Comment #15
rajab natshah✅ Released varbase_layout_builder-10.0.12
Comment #16
rajab natshah✅ Released varbase-9.0.6
Comment #17
rajab natshah