I was wondering if it was possible through core or modules (or very minor code, as I'm not very experienced with php and drupal) to set up a search where you can pick which specific profile fields to search.

For example, if I have a selection list with the choices Item A, Item B, and Item C as a profile item, I would like a search page that would display all members that, for example, have Item A selected (or B or C, whatever). I know this can kind of already be done by clicking on the links in the profile, but there's a but more. I would like this to work in conjunction with multiple fields. For example, in the scenario above, imagine I wanted to search for all people who have selected Item A AND also have entered the zip-code 55555 in their zip code field. I would like the search page to be able to search through any and all combinations of profile items.

Is there such a module? If not, I can't imagine that this is too difficult to do since searching for individual items is already there by clicking on the profile links, so if someone could point me in the right direction I think I can probably figure it out. I don't know much about drupal or PHP but I do have a bit of programming and scripting experience so with help I should be able to get it working.

Thanks!

Comments

niklp’s picture

I'm not sure you can do it with core profile module - I know you can certainly do it with both "node profile" and "bio" profiling systems though. You might be best off looking at these, as further down the line you can then implement views for displaying data in the manner you describe, and also easy maintenance of custom profile fields and still be using taxonomy etc.

Web Design & Development in Nottingham by Kineta Systems

Juryiel’s picture

How would you implement something like this using nodeprofile?

niklp’s picture

... to be honest. There are a few tutorials about. I suspect your best bet is to investigate the "profiles as nodes" thing as a whole, then look at views with exposed filters, or something akin to that.

Web Design & Development in Nottingham by Kineta Systems

Juryiel’s picture

Well, I found the Faceted Search and CKK Facets, and this provides a much more elegant solution to my search needs that what I had in mind of doing myself. Thanks anyway, and thanks to those who wrote those kickass facet modules :)