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: enable a bulk import option for custom patterns #56794

Open
annezazu opened this issue Dec 5, 2023 · 4 comments
Open

Patterns: enable a bulk import option for custom patterns #56794

annezazu opened this issue Dec 5, 2023 · 4 comments
Labels
[Feature] Patterns A collection of blocks that can be synced (previously reusable blocks) or unsynced [Type] Enhancement A suggestion for improvement.

Comments

@annezazu
Copy link
Contributor

annezazu commented Dec 5, 2023

What problem does this address?

Currently, if you want to export and import patterns across sites, you can do so individually #53288 but there's not an easy way to do so in bulk. We want folks to use patterns so not having a bulk option where folks can move patterns around feels like a gap we'd want to fill. The Data Views work, which is very early and experimental, has an option right now for example. Here's the current experience:

no.bulk.export.or.import.mov

What is your proposed solution?

Add an option to export custom patterns from the Import/Export screen, similar to posts/pages/dataviews.

@annezazu annezazu added [Type] Enhancement A suggestion for improvement. [Feature] Patterns A collection of blocks that can be synced (previously reusable blocks) or unsynced labels Dec 5, 2023
@annezazu annezazu added this to Patterns Dec 5, 2023
@bgardner
Copy link

bgardner commented Dec 5, 2023

Huge fan of this feature.

@csilverman
Copy link

Chiming in late, but I would 100% use this feature. I found this thread just now when searching for how to do that; I assumed there was already a way of exporting patterns, and I was a little surprised to notice that the exported theme (via Tools > Export) contained templates but not patterns.

Besides making it easier for me to move a theme from, say, my local dev environment to the remote site, this would also make it possible for me to re-use the same patterns across multiple sites. I'd love to be able to develop a bunch of basic patterns and then add them to new themes so I don't have to keep recreating them.

(Also, including patterns in the main theme export just seems like expected behavior for export; I initially wondered if they hadn't been exported because of a bug or a problem with my setup or something.)

@miksansegundo
Copy link
Contributor

Loving this feature too and wondering if we can also export/import a zip with patterns directly from the Site editor.

I found there is an open PR for Data Views that adds the ability to bulk export a set of patterns.

Screenshot 2567-02-14 at 16 20 43

@annezazu
Copy link
Contributor Author

annezazu commented Jul 5, 2024

Bulk exporting is available #58897 and will land in WordPress 6.6 on July 16th. Going to update this issue as a result for bulk importing :)

@annezazu annezazu changed the title Patterns: enable a bulk export and import option for custom patterns Patterns: enable a bulk import option for custom patterns Jul 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Patterns A collection of blocks that can be synced (previously reusable blocks) or unsynced [Type] Enhancement A suggestion for improvement.
Projects
No open projects
Status: No status
Development

No branches or pull requests

4 participants