Conditionally hide individual Builder blocks from the "Add items" list
Hi all. Does anyone know of a way to conditionally hide individual blocks from the "add content" list of the Builder field? I've got a situation where users should only be able to add 1 of each block type.
cheers
2 Replies
Digging up an old question, but did you ever figure this out?
I'm creating a page builder that has multiple pages, but each page has different Blocks - some blocks cannot be used on some pages.
For anyone else looking, I did something like this in my resource:
Then just give that to the Builder
Yeah I submitted a PR for this: https://github.com/filamentphp/filament/pull/9931. The info is in the docs.