dps123 Posted April 15, 2016 Share Posted April 15, 2016 Hi, just wondering if there is a neat way to get all possible values stored for a particular field. I realise I could do this with PHP and MySQL by querying the relevant field_my_field table, but wondered if there was a better way. Link to comment Share on other sites More sharing options...
LostKobrakai Posted April 15, 2016 Share Posted April 15, 2016 I think the mysql variant would certainly be the most performant. Otherwise you'd need to load all pages holding that field into memory, which is probably not your intend. 1 Link to comment Share on other sites More sharing options...
Pete Jones Posted April 15, 2016 Share Posted April 15, 2016 https://processwire.com/talk/topic/9400-how-to-get-all-unique-values-for-a-field/ Good discussion by LostKorakai. 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