We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This has come up a few times, and there's never been a concrete answer...
When the Addresses are stored within a Matrix field, what is the correct way to do a proximity search?
There is a lesser-known query method for craft.matrixBlocks, but it doesn't work with orderBy('distance').
craft.matrixBlocks
orderBy('distance')
✅ {% set matrixBlocks = craft.matrixBlocks.all() %}
❌ {% set matrixBlocks = craft.matrixBlocks.myAddressField(options).orderBy('distance').all() %}
If we can crack it, I'll be happy to document the solution.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
This has come up a few times, and there's never been a concrete answer...
When the Addresses are stored within a Matrix field, what is the correct way to do a proximity search?
There is a lesser-known query method for
craft.matrixBlocks
, but it doesn't work withorderBy('distance')
.If we can crack it, I'll be happy to document the solution.
The text was updated successfully, but these errors were encountered: