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

Expose "block hooks" at the section level #65676

Open
Tracked by #66499
mtias opened this issue Sep 26, 2024 · 1 comment
Open
Tracked by #66499

Expose "block hooks" at the section level #65676

mtias opened this issue Sep 26, 2024 · 1 comment
Labels
[Block] Pattern Affects the Patterns Block [Feature] Block hooks [Feature] Patterns A collection of blocks that can be synced (previously reusable blocks) or unsynced Needs Design Needs design efforts. [Type] Enhancement A suggestion for improvement.

Comments

@mtias
Copy link
Member

mtias commented Sep 26, 2024

It'd be great if sections (patterns/top-level-groups/template-parts) were able to list blocks hooked into child elements when in select/content-only mode, re block hooks.

For example, say WooCommerce is hooking "Cart" to the navigation block, when selecting the header template part we should surface the block hooks interface so the Cart block can be toggled on or off without having to explicitly select the navigation menu itself.

@mtias mtias added [Type] Enhancement A suggestion for improvement. [Feature] Patterns A collection of blocks that can be synced (previously reusable blocks) or unsynced [Block] Pattern Affects the Patterns Block [Feature] Block hooks labels Sep 26, 2024
@mtias mtias added the Needs Design Needs design efforts. label Oct 23, 2024
@simison
Copy link
Member

simison commented Nov 12, 2024

This would be helpful bubbling to templates like "single post":

E.g. "Likes" and "Subscription" blocks get hooked to "the content" block, but now we require users to choose the content block to be able even to discover there are some block hooks disabled.

They'd be more discoverable if they bubbled up as "features to enable" at the single post template level:

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Pattern Affects the Patterns Block [Feature] Block hooks [Feature] Patterns A collection of blocks that can be synced (previously reusable blocks) or unsynced Needs Design Needs design efforts. [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

No branches or pull requests

2 participants