0

hi i have a site in which i want to show items, now i want to be able to filter the items based on several paramaters (*note the parameters aren't related to one another which is why dependency filter module isnt the solution.)

what i want to do is the user can choose a value and filter the results by it, then the remaining filters and filter values would only be ones that have items remaining that fit the criteria.

an example if the items are computer screens and i have 3 attributes - color, width, company then if a user chooses hp for company and they only have white screens then i will only see white as an option in the color filter. if i choose dell and they have black and white then both colors will show on the filter.

is there a module that achives this affect, if not is there a way for me to do it myself (im pretty new to drupal i understand what hooks are but not to familiar with them and never developed a module).

2
  • 1
    Have you looked at Facet API Commented Feb 25, 2015 at 15:32
  • didnt know this was the name of the wanted functionality +1
    – Gabriel H
    Commented Feb 25, 2015 at 17:45

1 Answer 1

1

You can use Search API with Facet API to create search pages with dynamic filters like here but you can use another modules like Ajax facets if you need checkboxes or select lists as filter widgets.

Search API needs also a database backend (Search API Database Search).

3
  • thx, seems to be that those are all the modules i needed, a grood video that ties it all together : youtube.com/watch?v=hcAM0HrEk4c
    – Gabriel H
    Commented Feb 25, 2015 at 17:46
  • one question though - seems i need each filter to be indexed how much of a performance impact does this method have?
    – Gabriel H
    Commented Feb 25, 2015 at 17:48
  • It depends - of course - how many entities (like "core" entities: nodes, taxonomy terms & vocabularies, users or other, made available by contributed modules, e.g.: profiles, files, relations do you have and which one are indexed - you can create different indexes for particular entity types. A good news is you can disable the Search module provided by Drupal core (and truncate its index table) if you would decide to use Search API.
    – 0x6d6c
    Commented Feb 25, 2015 at 20:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.