- 🇺🇸United States mlncn Minneapolis, MN, USA
@dshields @mkalkbrenner
With Better Exposed Filters + Facets 3 as Exposed Filters the facets *always* autocosubmit, and even worse, if you use Better Exposed Filters to enable autosubmit for other non-facet fields (to provide a consistent experience) it interferes with facet autosubmitting.
There needs to be an option somehow in Facets to turn autosubmission off, including (especially?) for use with Better Exposed Filters.
- 🇨🇦Canada plousia
For those who got this patch to work, I'm looking for a little guidance. I set my facets to "disable autosubmit", and added the filter summary with apply button enabled, but my facets are still autosubmitting. I tried enabling ajax but that didn't prevent autosubmit and broke my filters in other weird ways.
Seem like this patch stopped working on Druapl10. Was working fine on 9.5.9. But since updating to Drupal 10.1, gets errors about "Uncaught TypeError: e(...).once is not a function". Is it possible to make a patch that fix it for Drupal 10?
- last update
over 1 year ago 424 pass, 2 fail - 🇺🇸United States nsciacca
@GuStAvE33 Here's a patch for D10 using core/once instead of jquery once which is likely what was failing.
I was able to get this to work as desired with the patch but I had to enable the facets_summary block, which I wasn't using previously. The JS library was added to that submodule, but I don't think it needs to be there in the long run. I was able to enable it and just put a button with class "facets-apply-button" on the page with my existing checkbox facets that were updated to not auto-submit and it worked.
- last update
over 1 year ago 424 pass, 2 fail - last update
about 1 year ago 424 pass, 2 fail - last update
about 1 year ago 424 pass, 2 fail - 🇪🇸Spain akalam
I'm adding support for the dropdown widget based on the #67 patch. Sorry for not providing an interdiff but it's giving me a whitespace related error.
During testing I found something that might be an issue. The apply button on the facet summary is only visible if there's at least one facet activated on the facets summary configuration. As consequence, it's not possible to create a facet summary block to display only the apply button, without the information of the selected facet values.
The idea to alter links to checkbox by javascript is not ideal. It makes the significant front-end update only after the page is fully loaded. In some scenario e.g. slow network or low end, this is not unnoticeable. Checkboxes would be ideal to be separate widget that renders checkbox elements directly.
- 🇺🇸United States chrisgross
It looks like the issue described in #68 happens when "Adds reset facets link." is before 'Adds single submit button." in the Processor Order, but it works correctly when they are swapped. In most cases, the apply button should come before the reset link, so this is a problem.
- 🇳🇱Netherlands interactivex
I've added the Facets Summary block and I see the submit button. Only when I submit it's not going to the results page. I have the facets in a separate block on the homepage and when submitting it should go to the /search page, but now it stays on the homepage. Any idea on how to solve that?
- 🇳🇱Netherlands interactivex
Furthermore, I have developed a patch on top of the #68 patch that incorporates the logic to verify whether the facets block is located on a different page than the search results page. In our scenario, the facets blocks are positioned on the homepage, while the search results reside on their own dedicated page.
I hope this proves beneficial to someone.
- 🇫🇷France freed_paris
Hi,
I'm trying to add a submit button on my facets with disabled autosubmit (for accessibility reasons) but the submit button doesn't appear, is anybody can tell me where I can find the right way to do this ?Thank you in advance
Fred
- 🇧🇪Belgium samuhe
#68 works well for our usecase, but we want to display only the submit button and ran into the issue of the tags.
I've updated the patch from #68 to have a position option, similar to the reset button.
This allows it to only display a submit button when you select. "Show only apply button" - 🇺🇸United States msingh45
Encountering bug with soft limits.
If patch is applied and soft limits is turned on for any facet, checkboxes turn into links ( screenshot → ).
Dev console also outputs an error ( dev tools error → )