MWDelaney / sage-acf-wp-blocks

Composer library for generating ACF Gutenberg blocks from templates. Intended for use with Roots/Sage (http://roots.io)
346 stars 66 forks source link

Feature Request: Specific Blocks for Specific Pages #65

Open djmtype opened 2 years ago

djmtype commented 2 years ago

Please add support for targeting specific pages. For example, only allow a specific block to be added to the Home page. A use-case might be that I don't want the client to choose a carousel block for any page but the Home page.

Obviously I could just add the ACF fields for the carousel directly to the page like usual. However, what if the carousel was to be placed between 2 blocks, then I'd have to create a placeholder block which is not ideal.

MWDelaney commented 2 years ago

Hi, I'd be happy to add this but I'll need some reference material. Can you show me where in the ACF docs this kind of block scoping per page (or per page template maybe?) is referenced?