- π·π΄Romania vasike Ramnicu Valcea
As this is features request, let's move it to the latest branch/version.
And let's see what are the results of the patch.
p.s. btw is tha patch still applies to the latest? small update today?
p.s.2: thanks a lot for the efforts
- πΊπΈUnited States nessthehero
Just chiming in that the patch in #18 works for 2.x on a Drupal 10.1 install. This is exactly what I needed!
- Status changed to Needs work
11 months ago 10:45am 31 January 2024 - π·π΄Romania vasike Ramnicu Valcea
Unfortunately, this doesn't work ... yet
2 things:
1. The latest patches miss the updates mention at #16 and they were included in that patch (but it was based on a previous version of the module)
So we need something like
if ($key === 'views.filter.combine') { $definitions[$key]['mapping']['expose']['mapping']['autocomplete_combine_results'] = [ 'type' => 'integer', 'label' => 'Autocomplete combine results', ]; $definitions[$key]['mapping']['expose']['mapping']['autocomplete_combine_results_delimiter'] = [ 'type' => 'string', 'label' => 'Autocomplete combine results delimiter', ]; }
in function
views_autocomplete_filters_config_schema_info_alter
hookAnd 2. Most important - the filter won't work
So for example we haveTest some title
title and aTestname
username
Searching for test we can get results/suggestions like
-Test some title + admin
-Other title + Testname
And select any of those options the results will be "empty" as those values do not exist.In terms for this to work we'll need for the filter to "split back the suggestion" so it actually returns proper results.
But not sure how it could be done to work on any scenario.