Skip to content
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

Individual Column(s) should be able to define allowed blocks #18161

Closed
JesserH opened this issue Oct 29, 2019 · 1 comment · Fixed by #25183 or #35342
Closed

Individual Column(s) should be able to define allowed blocks #18161

JesserH opened this issue Oct 29, 2019 · 1 comment · Fixed by #25183 or #35342
Labels
[Block] Columns Affects the Columns Block [Feature] Blocks Overall functionality of blocks

Comments

@JesserH
Copy link
Contributor

JesserH commented Oct 29, 2019

Is your feature request related to a problem? Please describe.
Momently, an individual column can not define specific allowed blocks to be added. Furthermore, newly added columns from the slider in the columns settings also can not only allow certain blocks.

Use case - As a WordPress developer I want to be able to assign allowed blocks for individual columns in my custom block I am developing so I can guide and restrict the user in adding certain blocks.

Describe the solution you'd like
I want to introduce a new attribute called allowedBlocks, which is used to define the allowed blocks in the column(s). Locally, I have made a solution to this problem which locates to PR #18164.

Describe alternatives you've considered
I have considered creating my own column(s) block, which I did not find to be a relevant solution as I think other people could run into this problem as well.

@abotteram abotteram added [Feature] Blocks Overall functionality of blocks [Block] Columns Affects the Columns Block labels Oct 30, 2019
@JesserH JesserH changed the title Individual Column should be able to define allowed blocks Individual Column(s) should be able to define allowed blocks Nov 6, 2019
@talldan
Copy link
Contributor

talldan commented Dec 9, 2020

Reopening as per #25778 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment