Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi!
I have an "Excavation" content type where there is a field. ("Archeologist") This field is a reference for another content type, "Archeologist". I would like to create a views, where I display all of excavation with their archeologist in a table and display two exposed filters (title of excavation and archeologist). This module works well with "title of excavation" filter but it doesn't work with archeologist.
Does it support entityreference fields? Or, how can I display archeologist filter as an autocomplete one?
Thanks in advance,
Peter
Comment | File | Size | Author |
---|---|---|---|
#3 | Screen Shot 2016-01-24 at 16.07.11.png | 60.87 KB | asrob |
#3 | Screen Shot 2016-01-24 at 15.59.39.png | 120.63 KB | asrob |
#3 | Screen Shot 2016-01-24 at 15.58.31.png | 91.9 KB | asrob |
Comments
Comment #2
vasikeit should work
please check the video for D7. http://codekarate.com/daily-dose-of-drupal/drupal-7-views-autocomplete-f...
it's something similar on D8.
- Add the relationship
- Add the field wanted with the relationship
- Add the filter for this field: expose, use contains and check autocomplete.
That should be all.
Comment #3
asrobHi vasike,
Yeah, I've seen that video. But there is no "contains" option.
Comment #4
vasike1. If there is no "contains" option it is not this module issue.
2. I think the filter should be done for Name or title of the "Archeologist" entity.