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.
I have an autocomplete for a field referencing users.
I want to search for the users full name in the autocomplete field, which is stored in 2 separate first and last name fields. I don't want to duplicate the name in a new combined field because of the numbers of users would make the already large database unnecessarily larger.
Comment | File | Size | Author |
---|---|---|---|
#2 | 2326121-2-add-match-fields-combined-option.patch | 3.18 KB | emattias |
#1 | 2326121-1-add-match-fields-combined-option.patch | 2.89 KB | emattias |
Comments
Comment #1
emattias CreditAttribution: emattias commentedThis patch adds a new "Match search fields as one combined field" option which will allow you to search for a users full name even though the name is stored in multiple fields. This is based alot on the views_handler_filter_combine filter.
Comment #2
emattias CreditAttribution: emattias commentedHere's the same patch but now it will export the new match_fields_combined setting.
Comment #3
Chris Matthews CreditAttribution: Chris Matthews as a volunteer commentedThe 4 year old patch in #2 to entityreference_plugin_display.inc and entityreference_plugin_style.inc does not apply to the latest 7.x-1.x-dev and if still relevant needs a reroll.