I am new to Drupal (Drupal 7) and need to add search / filter functionality to a current site.
The client wants the have the user search for businesses near their location, filtering my type of business, then services the business offers. However they want put the filters on multiple pages, each page dependent on the prior search.

Example,
Page 1, geo locate the user or let the user enter an address along Proximity Search
Page 2, using the above criteria, show a list of business types available, user can multiple select (an or filter)
Page 3, using page 1 and 2’s filtering, show a list of services, allow a multiple select ( and filter )
Page 4, show the list of business
Page 5, show a map of the selected business

I know how to do this on one page, filters in an exposed block on top, location list on one side, maps with pins on the other. All the filters are applied at once, not depended on each other.

Is this possible to do? Can someone give me ideas how to do this?

Comments

couturier’s picture

The Panels module in Drupal 7 will work for you. Some of this functionality was supposed to be incorporated into Drupal 8 core, but I don't know how much of this was added in the final evaluation.

rlift’s picture

Thanks, I will give it a try

housepouch’s picture

Could you elaborate on how we could utilize the Panels module for this multi step search? I am trying to attempt a similar feature. Thanks!

rlift’s picture

bdparker’s picture

From what I understand, it sounds like you'd just need to make multiple views. Each view would have its own set of criteria and reside on a different page. Would that work?

rlift’s picture

I created 2 views, in my app one was a leaflet map, the other a list of the locations display on the map. The search criteria must be the same between both maps and then set Exposed form in block to true. Then the panel has the exposed search on top,select either views exposed form, and the 2 views on the left and right. When I search, both views are filtered based on the search criteria