0

I want to use view to show car parts.

I have 2 exposed fields (car manufacturer and car part like doors light etc) The view work nice but what i want is to have a way for example when user click at the first list (example Audi) to show if there is any part in the another list for parts.

Ex. In Audi i have only Doors and not lights When user select from first list Audi the list for part only show Doors.

So if Audi only have nodes for Doors will show in second exposed filter only the Doors option.

Drupal 7 views 3

  • 1
    What's the underlying structure for all of this. Content types? taxonomies? Also, how are car manufacturers related to car parts? entity reference? – jonhattan Aug 2 '13 at 18:32
  • I use 2 fields from a Content type Product. One list for Manufacture and another for part list. – Drupalizeme Aug 2 '13 at 19:36
0

From what you're describing it sounds like you need Faceted search. I'm not sure if Views filters can give you the functionality you're looking for.

Have a look at the Search Api module, it provides faceted search widgets which behave the way you described.

https://drupal.org/project/search_api

0

Reference field option limit is fine to acomplish this. You want to create a term reference field in vocabulary «parts» referencing terms in vocabulary «manufacturers». I did explain it detailed in an issue.

Also for views integration this module needs a patch you can find here.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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