Community & Support

Is there a module that can add these search functions to my site?

Here is the function of what I would like to have on my site. There is a menu item called Browse which is used to browse member profiles. When a user clicks on that it takes them to a page where they can choose as many options (pre-determined by me) as they want to be included in the search. Some examples would be Location (drop down menu), Services (radio buttons), Size of Company (small, medium, large), etc. Once the user selects what they want they click a search button on the Browse page which would then take them to a new page with the search results.

Ideally, the results would be displayed with several rows of images with text above each one. The text would be the company name, and the image would be whatever image they have uploaded (ie. a logo). There might be 20 results displayed per page with the option to click next to go to the next 20 results, etc. The user can then click on the image/name to go to that member's profile page.

Is there a single module or combination of modules that can accomplish this? Thanks.

Comments

You could probably use CCK to

You could probably use CCK to make the search form, though I'm not sure how you'd get it to do the actual search part without doing some backend work, sorry :S

works at bekandloz | plays at technonaturalist

Try exposed filters on a view

Create your member profiles with the profile fields you want. Create a view that shows member profiles in a page display, and add the fields you'd like to show in the results. You can use any/all of your chosen fields as exposed filters. Exposed filters are displayed at the top of the page as form fields, and you can set the type of the field (dropdown etc).

Let me know if that's too vague, and tell me where you're stuck. I'll see if I can walk you through it.

Doug Gough
ImageX Media

Thanks for the reply. I sort

Thanks for the reply. I sort of understand what you're saying, but it's still a bit vague mostly because I'm still a bit of a newbie when it comes to Drupal. The site I'm building is my first one with Drupal. Any time I try something new I do it on a test site, so I'm going to go ahead and do that at some point today/tomorrow and see how it goes and I'll report back with any problems I'm having. If there is any other info you could give me in the mean time, that would be great. Thanks.

I've gotten as far as I can

I've gotten as far as I can without getting stuck so I'll need some more help. Here is what I've put together so far. I created 3 users and added fields to their profiles that include favorite color, city, state, and country (these will be the terms that someone could search by. This is just a test site so I just kept it simple for now). Next, I created a view named search_results. I added two fields, "User: Name" and "User: Picture". I set the "Style" to Grid and the "Row style" to Fields.

In the Live Preview below it displays 12 items with the user's name and user's picture. For some reason it's all the same user (maybe it just does that for the live preview). Also, the user name isn't displaying right above the user's picture like I had hoped. It's displaying the name and then the picture beside and below instead of just below. I'm sure it's just a setting that I'm missing or something.

Now I'm not sure where to go next. How do I go about allowing the user to click the browse menu item where they are then taken to a page where they can select favorite color, city, state and/or country and then make it display the results in the view I just created?

The positioning of the name

The positioning of the name and picture etc is something you'll have to address through theming. Everything will have a css id or class, so you can position them using css styling.

I don't have a D6 installation available to me right now, so I can't give much in the way of detailed instructions. You need add filters to the display for each field you want to use as selection criteria, and you need to expose the filters so that users can select the criteria.

As for the Live Preview, I don't think it's supposed to do that. It sounds like you've got something wrong either in the profile setup or in the view.

You'll have to just keep messing with it until you get the hang of configuring a view. That's how I learned it.

Doug

Search Features

I would suggest that you look at the new search feature at http://acquia.com/products-services

From the Site

"Acquia Search

Acquia Search is available now! Adding Acquia Search to your site keeps users on your site longer and helps them find content faster. Based on the powerful Lucene and Solr technologies from the Apache project, Acquia Search creates a rich index of your site content. When users search on your site, Acquia Search presents them with dynamically created filters so they can drill into results based on date, author, taxonomy term, content type, or other built-in or custom attributes."

There is a screen cast of the capabilities on the. Some of it is FREE while a more advance version will cost you.

James Roughton, CSP, Six Sigma Black Belt
Social Networking and Persona Branding Mentor

nobody click here