You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I assume the answer is no, but is it possible to fetch a post in a collection via something other than the slug?
For example each post in my collection has a field “foo_id” which is a custom field type. The custom field type is pulling data from an external system so we can link posts together. I want to then fetch the posts that match a given “foo_id”.
If it’s not possible would you be open to a PR to allow this functionality?
Thanks
The text was updated successfully, but these errors were encountered:
Hey @joshhornby, sorry for the late reply. You are correct, this isn't currently possible.
Custom filtering has been on the roadmap for a little while now, but in anticipation for Statamic v3, I've stopped dev as there is a high chance that the addon will need to be rebuilt anyway.
If you require the feature anyway, feel free to submit a PR -- if the code is easy to follow and I can test that there are no breaking changes then I may be able to merge your work. Worst case, you'll have to use your own forked version which is probably fine too!
Hi,
I assume the answer is no, but is it possible to fetch a post in a collection via something other than the slug?
For example each post in my collection has a field “foo_id” which is a custom field type. The custom field type is pulling data from an external system so we can link posts together. I want to then fetch the posts that match a given “foo_id”.
If it’s not possible would you be open to a PR to allow this functionality?
Thanks
The text was updated successfully, but these errors were encountered: