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.
Option to disable updating the facets after each facet selection for Apply/Reset facet buttons block.
I believe the best course of action is to add a new option in the facets block configuration that allows the facet selection auto update for available facets and counts to be disabled.
Patch adds new option to Apply/Reset facet block to disable available facets and facet counts from updating. Default value for block for auto updating is feature is ON.
Comment | File | Size | Author |
---|---|---|---|
#21 | disable-auto-refresh-3172373-21.patch | 17.15 KB | phannphong |
#20 | disable-auto-refresh-3172373-20.patch | 16.34 KB | Valentine94 |
#19 | disable-auto-refresh-3172373-19.patch | 16.18 KB | Valentine94 |
#18 | disable-auto-refresh-3172373-17.patch | 14.06 KB | Valentine94 |
#16 | disable-auto-refresh-3172373-16.patch | 15.22 KB | Valentine94 |
Issue fork facets-3172373
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
Bharti Mehta CreditAttribution: Bharti Mehta commentedComment #3
Bharti Mehta CreditAttribution: Bharti Mehta commentedComment #4
Bharti Mehta CreditAttribution: Bharti Mehta commentedComment #5
Bharti Mehta CreditAttribution: Bharti Mehta commentedComment #6
Bharti Mehta CreditAttribution: Bharti Mehta commentedComment #7
Mistrae CreditAttribution: Mistrae commentedUpdated for latest version
Comment #8
Mistrae CreditAttribution: Mistrae commentedLatest patch was buggy with multiple facets.
Comment #9
dorficus CreditAttribution: dorficus at EPAM Systems commentedChecking to see if this is something being considered for inclusion in 3.x? I agree that there should be the option to select multiple facets and then apply them rather than having a page reload/AJAX call each time a box is checked.
Comment #10
Valentine94Patch cleanup and re-roll
Comment #11
vlad.dancerComment #12
Valentine94Fixed missing facet source path for submitting and added a way to limit this functionality for specific pages only
Comment #13
vlad.dancerAdded code guards against empty js settings.
Comment #14
vlad.dancer> added a way to limit this functionality for specific pages only
Then we either need to use condition manager service for correctly checking request path or rely on facet_block with condition_path modules for doing that.
Currently, a language prefix is not counted when checking requets path.
Comment #15
vlad.dancerUsed request_path condition plugin to check path in a more accurate way.
Then we need to add tests and write hook_update for bringing up new config options.
Comment #16
Valentine94How about this?
Comment #18
Valentine94Rolled back DI implementation for now to allow tests pass
Comment #19
Valentine94Additional small fixes
Comment #20
Valentine94Extra condition to prevent wrong behavior
Comment #21
phannphong CreditAttribution: phannphong as a volunteer and at FIDESIO, Athena commentedI have made updates based on patch #20 to create a new patch that can be applied to version 3.0.0-beta1.
Comment #22
liquidcms CreditAttribution: liquidcms commented[deleted] - js cache not cleared.. all working now:
- don't submit on checkbox click
- ajax submit when views exposed form submitted
Thanks for this :)