5

I have content types as Leaves and Branch. and I have an Branch ER field in Leaves. How to show Branch as select list in views exposed filter Drupal 8?

I really need a solution asap.

Thanks.

3 Answers 3

3

How about the Views Entity Reference Filter module? The module is also capable of showing the values of the referenced entities in a filter instead of the IDs.

0
1

I came across same situation long before. I did not remember exactly.

Check this link https://www.drupal.org/node/2429699

enter image description here

1
  • Yes I have seen that link. But non of the patches work. any other solution?? Commented Jul 18, 2017 at 10:20
1

I think what you're looking for is entityreference_filter module. it' working on drupal 8 and 9

This module provides the views filter for entity ID or entity reference fields:

node ID user ID taxonomy term ID term reference field (Drupal core) entity reference field (Entity reference module) Exposed filter functionality Taxonomy term filtering: Imagine the following case - you have taxonomy terms in exposed filter widget (drop down select list). But for some reason you want to show just several terms, not all the dictionary. With this module, you can do this by creating a separate view which generates the desired list of terms.

The similar functionality is available for other type of fields - you create a separate view (or a new display of the same view) which returns the list of items to show in drop down select list of the exposed filter.

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.