Skip to content

Add support for collection entry blueprints loaded via addons #1327

Open
statamic/cms
#11674
@xenco

Description

@xenco

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions