Replies: 1 comment 20 replies
-
You can set |
Beta Was this translation helpful? Give feedback.
20 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
What's described here is basically what I try to achieve:
https://www.algolia.com/doc/guides/building-search-ui/widgets/customize-an-existing-widget/js/#apply-default-value-to-widgets
I want to have a default, preselected value of a menu widget (instantsearch.widgets.menu). I have two types of results, products and pages. By default I want to only list results of type products. Only when the visitor selects the Pages type I want to list the pages.
I do this by setting:
disjunctiveFacetsRefinements.facet = ['Products'];
Then only products are listed on initial page load (as expected), however I run into two issues:
Beta Was this translation helpful? Give feedback.
All reactions