horst Posted January 13, 2019 Share Posted January 13, 2019 (edited) Hi, is it possible to setup the lister / listerpro to have some fields in OR condition for the same value, without to enter the value multiple times? I want give the user the ability to input one value and as result, get the pages where this value is present in one of four columns. Is this possible? Also the default value should be blank on start of the lister(pro). As pages selector it would look like: $pages->find("template=mytemplate, field1|field2|field3=someValue"); A user should be able to write in one value in one place and the lister should return all pages that have this value in one of multiple fields. Is this possible? Edited January 14, 2019 by horst Link to comment Share on other sites More sharing options...
bernhard Posted January 13, 2019 Share Posted January 13, 2019 Maybe https://modules.processwire.com/modules/fieldtype-concat/ ? Don't know if that works only on runtime or also for selectors. You could also populate a separate field via saveready hook and then query this field if this does not work with the concat fieldtype (sorry, I've never used it). 2 Link to comment Share on other sites More sharing options...
horst Posted January 13, 2019 Author Share Posted January 13, 2019 Hi @bernhard, that's a possible solution: adding a hidden field to that template and on saveReady concatenate all four field values into it. (Thats exactly what fieldtype concatenate does, if I rememeber correct). So, it sounds a bit quick & dirty, but then I can present one input field in the filter tab and show in the results the original single fields. Thanks! 1 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