Replies: 5 comments 8 replies
-
Thanks for putting this discussion together. I'm not sure I can come up with a solution for what a good MVP is. All I can do is share some of the things I am hoping for out of this feature. Kind of the promise that it had for me from the moment I first heard about the idea of then called partially synced patterns. Example 1I would like to define sections like this where I have a group with a background color, some padding, a heading, query loop, and a button. What I want editors to be able to override is the heading text, Button text & link (ideally including things like the rel attribute) and then also the query options of the query loop block. So that an editor can change the taxonomy filter, for example. But the actual post template within the query should be synced so that I can globally update the styling of cards. Or change the number of columns the grid should have. In an ideal world, I would even go so far as to defining the content of the post template block as a synced pattern on it's own so that I can always globally update how cards are styled throughout the site. Example 2This is a nice example of a card grid from Olliewp (thanks @mikemcalister). The speciailty here ist that I would want to allow users to add / remove individual cards here. But not change the design within them. Also instead of the image block I would ideally like to be able to use my own custom Icon block for this which allows me to use an SVG from a bundled icon library. (Similar to https://nickdiego.com/projects/icon-block/). But that would mean I as a developer would need to have access to register custom block bindings. Example 3
Additional InsightsSomething that I originally had in mind here was the ability to manually control which attributes would be exposed to be overwitten. That the foundation of this feature would not be the This would kind of allow this feature to replace a lot of custom development work. Closing ThoughtsI think what I'm trying to share here is that in my eyes I had hoped this feature would be less coupled with the I don't want to remove all styling options from someone. On the contrary, I want to highlight the ones that actually allow the client to make meaningful changes between variations whilst also hiding a lot of the complexity from them. That is the main reason why we often fall back to custom block development. I think the Section Specific styles are a great example. I don't see how those shouldn't be something I can expose to a user on a synced pattern. They can choose from a few preconfigured versions of the pattern. Whilst I can manage those style variations and the general structure in the main synced instance of the pattern. Oh and as I mentioned before, ideally the source of truth for these patterns that allow overrides would not be in the DB but in a pattern file located in the theme :) |
Beta Was this translation helpful? Give feedback.
-
I spent some time testing the synced pattern experiment for a project that could really use them and have been thinking about this: I think what I would want with synced patterns are actually closer to an 'ACF Blocks' approach- essentially a container where I can make any changes to the design/layout, but where there might be a handful of blocks in the pattern that are essentially tied to a specific value (perhaps via a custom field). Say your pattern has a number of blocks and decisions about layout & design. But for some of those blocks, they're clearly assigned to a specific custom field value on the post (or a maybe an attribute stored on the pattern-level, though this feels like a great use-case for postmeta). So then in theory you could completely change, move, redesign, reconfigure that synced pattern, but because you've defined some of the internal blocks to pull that specific meta value from the individual post object (and your pattern itself defines the default values), you can basically do anything to the pattern itself. And then only the content of those specific blocks are editable in the post. A basic example could be a CTA pattern. I want the design to be synced, I might want some of the blocks to be locked at the pattern (maybe a contact form or button), but then I want the user to be able to modify the content of the heading and paragraph text or an image block. Then globally I want to be able to completely rearrange, reorder, redesign the pattern, but ensure the post-specific values can still be pulled properly. I understand there are other use cases for this. So maybe the actual best way to approach this specific use case I'm outlining is to just put more support behind the Block Bindings API, which could theoretically enable this type of functionality? #54536 |
Beta Was this translation helpful? Give feedback.
-
The dream scenario for me would be for this feature to work with patterns added by a theme. I create patterns as PHP files in the (These are patterns using template locking to keep them consistent throughout the site.) This would eliminate multiple existing pain points:
One other ongoing issue that I've been unable to resolve has been removing the ability to change the heading level even within a |
Beta Was this translation helpful? Give feedback.
-
As others have mentioned, being able to register pattern overrides in the theme with the Another pain point with patterns is how to manage updates. Currently the task is put on the site editors/users to reinsert the pattern and update the content if a pattern style or structure changes. The copy block styles option helps with this lift, but it is not an intuitive workflow. Optional blocks in a pattern should also be considered. Currently we tell users to delete the blocks they are not using in a pattern instead of leaving blank with the placeholder text. If left blank, certain elements will still render the html tag on the front end, potentially presenting an accessibility issue. A solution would be to make certain blocks optional and have them not render on the front end. I’m also very interested in how pattern overrides will work with section specific styling. Currently, in order to create multiple variations of a pattern, we are replicating the same pattern file and have a separate pattern file for each color variation. This creates a litany of pattern options in the block inserter. Ideally, section specific styling would overcome this issue, and pattern overrides would support the option for multiple styles on one pattern file. I can provide specific examples if more clarification is needed, thank you! |
Beta Was this translation helpful? Give feedback.
-
Having patterns managed in code is crucial! |
Beta Was this translation helpful? Give feedback.
-
Pulling from this last week's hallway hangout on WordPress 6.5, I wanted to create a place where folks could share feedback about the ways in which they imagine using pattern overrides to help shape the present and future of this feature.
What is the feature?
How do you imagine using this? What blocks are a must have for supporting overrides for your workflow?
Currently, just the paragraph block is supported for overriding capabilities with plans to add support for heading, button, and image blocks (help test!). Support has to be added on a block by block basis so it's critical that we add support for the right blocks that are most high impact. Dive into the present and consider what blocks would be critical for you. Jump ahead to the future and share how you imagine using this going forward!
Beta Was this translation helpful? Give feedback.
All reactions