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 filtering by blueprints in Entries fieldtype #7047

Conversation

FrittenKeeZ
Copy link
Contributor

I've had the need to do this for all projects we've done, so now I've decided to make a PR for it instead of just making a custom fieldtype extending entries.

@what-the-diff
Copy link

what-the-diff bot commented Nov 14, 2022

  • Added a new if statement to the getIndexItems method.
  • The condition checks for an array of blueprints in the field's configuration and adds them as filters to the query, if they exist.

@jasonvarga jasonvarga merged commit 06a87e2 into statamic:3.3 Nov 15, 2022
@FrittenKeeZ FrittenKeeZ deleted the feature/entries-fieldtype-blueprint-filtering branch November 15, 2022 19:19
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.

None yet

2 participants