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

Allow patterns files to be divided into sub folders inside the main "patterns" folder #50144

Open
VladNov opened this issue Apr 27, 2023 · 5 comments
Labels
[Block] Pattern Affects the Patterns Block [Feature] Patterns A collection of blocks that can be synced (previously reusable blocks) or unsynced [Type] Enhancement A suggestion for improvement.

Comments

@VladNov
Copy link

VladNov commented Apr 27, 2023

What problem does this address?

With growing number of patterns inside a theme, it's becoming inconvinient to deal with a long list of files inside the "patterns" folder.

What is your proposed solution?

A great option would be to divide the patterns files into sub folders based on the pattern first word in the slug name. For example, all header patterns are added into the "header" folder, all footer patterns into the "footer" folder, testimonials patterns into the "testimonials" folder and so on.

@colorful-tones colorful-tones added [Feature] Patterns A collection of blocks that can be synced (previously reusable blocks) or unsynced [Block] Pattern Affects the Patterns Block labels Apr 27, 2023
@colorful-tones
Copy link
Member

I would like to know if there is some overlap and experimentation here for filtering the path where patterns are saved. Support for multiple entry points could help with organizational efforts. 🤔 #32696

@aaronrobertshaw
Copy link
Contributor

A PR related to addressing this issue has been started in #53668.

@bgardner
Copy link

I would love to see this happen, especially since I made the same suggestion to @richtabor recently. It would also mirror functionality that currently exists in the /templates directory, which allows for subfolders inside of it.

@carolinan
Copy link
Contributor

Twenty Twenty-Five currently has over 80 patterns, and more patterns will be added before the theme is complete.
Since these are patterns that are sets of different templates for home, archive, search, single + a post list, header and footer, it would be very helpful to be able to bundle these sets in subfolders.

@juanfra
Copy link
Member

juanfra commented Nov 11, 2024

I just opened a PR for this issue here.

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] 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: Todo
Development

No branches or pull requests

7 participants