Gutenberg and FSE: How to exclude a block from full site editing

Question

One of my blocks only works in posts. It does not make sense to use it on the homepage. Another thing my block does not support is multiple instances on the same post id. I could prevent that with:

"supports": {
        "multiple": false
    },

in block.json. How can I allow the block being used only on pages and posts but not in FSE?

0
Marc 4 months 2022-01-19T11:09:23-05:00 0 Answers 0 views 0

Leave an answer

Browse
Browse