Skip to content

[5.x] Add create_blueprints config to entries fieldtype#14388

Open
el-schneider wants to merge 2 commits intostatamic:5.xfrom
el-schneider:feat/entries-fieldtype-create-blueprint-filter
Open

[5.x] Add create_blueprints config to entries fieldtype#14388
el-schneider wants to merge 2 commits intostatamic:5.xfrom
el-schneider:feat/entries-fieldtype-create-blueprint-filter

Conversation

@el-schneider
Copy link
Copy Markdown
Contributor

This adds a create_blueprints config option to the entries fieldtype, allowing you to restrict which blueprints appear in the "Create & Link" dropdown.

This is the creation-side counterpart to the blueprints config added in #7047, which filters the selection list. It follows the same approach: a YAML-only config, not exposed in the CP field configurator, consistent with how blueprints was introduced.

Usage

related_entries:
  type: entries
  collections:
    - pages
  blueprints:          # filters selection list (existing, #7047)
    - article
    - page
  create_blueprints:   # filters creation dropdown (new)
    - article

@el-schneider el-schneider changed the base branch from 6.x to 5.x March 30, 2026 10:51
Copy link
Copy Markdown
Member

@jasonvarga jasonvarga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We're not adding new features to 5.x. Please target 6.x. Also, I think the existing blueprints config should probably be used for that dropdown. I don't think we need a new setting.

@el-schneider
Copy link
Copy Markdown
Contributor Author

It is currently used for that, the idea is to have different configs for creation and linking. Our use case is, that we need our users to be able to link to everything, but only create certain entries.

@jasonvarga
Copy link
Copy Markdown
Member

If you mark a blueprint as hidden I believe it gets excluded from creation dropdowns.

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 this pull request may close these issues.

2 participants