Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
In the field settings, "Render Views filters as select list" does not result in a select list in the exposed filter of an entity reference field using a taxonomy. Only a text field is exposed which takes the term ID's.
Comment | File | Size | Author |
---|---|---|---|
#7 | set-filter.png | 32.49 KB | kitikonti |
#7 | view-settings.png | 81.26 KB | kitikonti |
#7 | filter-settings.png | 39.14 KB | kitikonti |
#7 | field-settings.png | 115.89 KB | kitikonti |
#3 | additional-behaviors-entity-reference-select.png | 11.29 KB | haydeniv |
Comments
Comment #1
Yuri CreditAttribution: Yuri commentedCan anyone confirm this is the case...it appears like this in my sites and I would like to know if this is a bug.
Comment #2
kitikonti CreditAttribution: kitikonti commentedAlso dont work for me
Comment #3
haydeniv CreditAttribution: haydeniv commentedAs described here #1392702-30: Entity Reference does not offer select list as a views exposed filter, only text field for id number comments 30-31
You may want to revisit the Manage fields page, and tick a new option:
Enable Render Views filters as select list
at the end of the field edit page:
admin/structure/types/manage/TYPE/fields/field_NAME
After doing that you may run into the problems described here: #1778368: Views filter as select list does not work due to "The operator is invalid on filter"
Just edit the exposed filter in the view and resave the view.
Comment #4
kitikonti CreditAttribution: kitikonti commentedI already have the "Render views filter as select list" enabled. And no i dont get the error from your linked issue. But with this config i still get no select list. But if i check the "Output filter as hierarchical select" option in the filter settings i get a select list. Did not know that this is also required.
But now i have another problem, in the default state the filter shows "-Any-" where i get no results. I only get results if i set a filter. If i have more filters i will have to filter with everyone of them to get a result. Not very nice.
Comment #5
haydeniv CreditAttribution: haydeniv commentedCan you provide some screenshots of what you are seeing? Also please include the version number of Drupal, entity reference, and views modules.
Comment #6
haydeniv CreditAttribution: haydeniv commentedComment #7
kitikonti CreditAttribution: kitikonti commentedSo i have made a new clean view to ensure there are no other config mistakes. Here a view screenshots. First of the Field settings, second of the view filter settings, third of the view general settings (with the empty preview) and the last with a preview with results because i set a filter.
Field settings
Filter settings
View general settings
View with set filter and results
Comment #8
kitikonti CreditAttribution: kitikonti commentedAhh and i forget the Module/Core Versions. Its always the latest stable/recommended version.
Comment #9
kitikonti CreditAttribution: kitikonti commentedÄhhhm dont know why the Metadate was changed, change it back again.
Comment #10
haydeniv CreditAttribution: haydeniv commentedWould you be able to upgrade to Entity Reference 7.x-1.x-dev on a test site and see if you are still experiencing the problem?
Comment #11
kitikonti CreditAttribution: kitikonti commentedHmm strange on a completly new drupal installation it works with the latest stable/recommended versions. I also enabled entity translation and setup the vocabolary as translatable. but this also works. i will do more tests tomorrow :-) -> now 00:00
Comment #12
haydeniv CreditAttribution: haydeniv commentedI'm going to close this for now. Feel free to reopen.
Comment #13
kitikonti CreditAttribution: kitikonti commentedMaybe i have found the problem, it seems there is a incompatibility to the shs module.
Comment #14
kitikonti CreditAttribution: kitikonti commentedI have found a related issue by the shs module.