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

[4.x] Allow tag conditions to support querying on sub fields using dot notation #9069

Merged
merged 1 commit into from
Nov 29, 2023

Conversation

ryanmitchell
Copy link
Contributor

This PR allows tag conditions to query on sub fields, eg date ranges.

Technically this was already possible, just the syntax was ugly:
:date_field->end:is_after="today"

after this PR you can do
:date_field.end:is_after="today"

Which looks a bit nicer I think.

Closes #7099

@jasonvarga jasonvarga merged commit 9011504 into statamic:4.x Nov 29, 2023
19 checks passed
@ryanmitchell ryanmitchell deleted the fix/issue-7099 branch December 12, 2023 09:33
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.

Date based filtering doesn't work with date ranges
3 participants