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.
When trying to add arguments in the contextual filters. The argument filter handlers are missing I checked the files and it doesn't exist. Though it exist for drupal 6 version
Julian Mancera
Comment | File | Size | Author |
---|---|---|---|
#11 | apachesolr_views-contextual_filter_fix-1425464-11-7.patch | 586 bytes | cachesclay |
Comments
Comment #1
steve.neill CreditAttribution: steve.neill commented+Subscribe.
This seems like something that needs to be fixed soon!
Comment #2
msamavi CreditAttribution: msamavi commented+Subscribe.
Comment #3
nyleve101 CreditAttribution: nyleve101 commentedHi,
just wondering if this feature will be ported to D7 soon? If it's not in the immediate plans would anyone be willing to implement it for a bounty?
Hope all is well,
Evelyn
Comment #4
nyleve101 CreditAttribution: nyleve101 commentedComment #5
ygerasimov CreditAttribution: ygerasimov commentedBasic implementation is done. Welcome to test.
Comment #7
George Bills CreditAttribution: George Bills commentedI might be making a mistake on my side, but to get my contextual filter to work I needed to change:
$this->query->add_filter($this->real_field, $this->argument);
to:
$this->query->add_where(0, $this->real_field, $this->argument);
Params added through "add_filter" don't seem to end up in the "fq" param passed to Solr.
Comment #8
yaelsho CreditAttribution: yaelsho commentedHello,
I also add to follow #7 to make the contextual filter work.
Thank you George!
Comment #9
yaelsho CreditAttribution: yaelsho commentedComment #10
acidpotato CreditAttribution: acidpotato commented@ #9 - Please open a new ticket and provide details of your issue.
Comment #11
cachesclay CreditAttribution: cachesclay commentedAdding patch of george-bills' solution.
Comment #12
jfalkner CreditAttribution: jfalkner commentedThank you, Julian. Nice to have it neatly packaged so my issue can be solved fast. Works like a charm!
Comment #13
MiroslavBanov CreditAttribution: MiroslavBanov commented@e.c.f.
This should already be fixed on dev in this issue:
#1750952: apachesolr_views_handler_argument is ignored by build(&$view)