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

Patterns: replace a synced pattern's underlying content (like video blocks) without having to detach first #68094

Closed
arunsathiya opened this issue Dec 18, 2024 · 4 comments
Labels
[Feature] Synced Patterns Related to synced patterns (formerly reusable blocks) [Type] Enhancement A suggestion for improvement.

Comments

@arunsathiya
Copy link
Contributor

arunsathiya commented Dec 18, 2024

What problem does this address?

Synced patterns are convenient as the design customization can be carried over to all the places that the pattern/block's used. But, if there's a need to change the underlying block content, there isn't a way to do that without detaching the pattern, thus losing the sync'd design.

Here's an example where a two columns block is published as a pattern, and when it's reused in another place, the only way to check the underlying content is by detaching:

Screen.Recording.2024-12-18.at.6.50.06.PM.mov

What is your proposed solution?

One of these two solutions would be ideal:

  • Ability to change the underlying block content without having to detach
  • Put the block back together into the same pattern, only if the content changed (without design changes)

Or perhaps patterns aren't designed for this use-case, in which case, is there a better way to approach this need?

@Mamaduka
Copy link
Member

I think this can be combined into #65778.

cc @talldan

@talldan
Copy link
Contributor

talldan commented Dec 19, 2024

Ability to change the underlying block content without having to detach

This sounds like the existing Pattern Overrides feature, the main issue is it doesn't support many blocks yet (it doesn't support video).

There's an intro to the feature here - https://developer.wordpress.org/news/2024/06/an-introduction-to-overrides-in-synced-patterns/

I think @SantosGuillamot and a few others are working on adding support for more blocks, so might be able to give an update of how that's going.

edit: This issue seems to discuss what's needed to support more blocks - #64189
The plan for WordPress 6.8 also mentions unlocking support for more blocks - #67520

@talldan talldan added [Feature] Synced Patterns Related to synced patterns (formerly reusable blocks) and removed [Feature] Write mode labels Dec 20, 2024
@talldan
Copy link
Contributor

talldan commented Dec 20, 2024

@arunsathiya Are you happy for this issue to be closed given there are already issues where this is being tracked?

@arunsathiya
Copy link
Contributor Author

Absolutely! Thanks for directing me to those other issues - I'll follow along there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Synced Patterns Related to synced patterns (formerly reusable blocks) [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

No branches or pull requests

3 participants