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

Add support for collection entry blueprints loaded via addons #1327

Open
xenco opened this issue Apr 7, 2025 · 0 comments · May be fixed by statamic/cms#11674
Open

Add support for collection entry blueprints loaded via addons #1327

xenco opened this issue Apr 7, 2025 · 0 comments · May be fixed by statamic/cms#11674

Comments

@xenco
Copy link

xenco commented Apr 7, 2025

For this PR

This PR enables addons to supply predefined blueprints for existing collections.

Problem
Statamic previously introduced addon blueprint loading support (see #9324), but it was limited to top-level blueprints only. It did not allow addons to add blueprints to existing collections—for example, adding an extra blueprint to the "pages" collection to support features like a page builder with addon-provided and autoloaded fieldsets.

Solution
This PR extends the blueprint loading mechanism, enabling addons to load entry blueprints for any existing collection. To make use of this functionality, addons must follow this directory structure:

Addon Root
└── resources/
    └── blueprints/
        └── collections/
            └── {collection-handle}/
                └── {blueprint-name}.yaml

Which will result in the addon blueprints being visible and selectable for that collections entries.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant