devsmo Posted November 7, 2016 Share Posted November 7, 2016 Hello, I'm building a web app using PW as the backend. Within the app there's a advanced search tool which allows searching using ID's. This search needs to be able to search stuff with template=x AND (ID=y OR parent.ID=y). It would seem Processwire doesn't handle this? template=entrytpl, parent.id|id=7077, sort=relatedstuff.release_date, sort=someotehrfield, start=0, limit=100 It doesn't cause an error, but the search only happens on one of the IDs (it would seem parent id). Is there some workaround or solution for this? This site runs on PW 2.7.3, upgrading is not an option for a while yet. Link to comment Share on other sites More sharing options...
BitPoet Posted November 7, 2016 Share Posted November 7, 2016 OR-groups should do the trick. template=entrytpl, (parent.id=7077), (id=7077), sort=relatedstuff.release_date, sort=someotehrfield, start=0, limit=100 2 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now