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.
I want to set facet value default, when we search keyword in search box, after that it shows facet value and respective results. So in my case i have two facets,book 1 and book 2. I want book 1 facet default selected.
Comments
Comment #2
eugene.ilyin CreditAttribution: eugene.ilyin as a volunteer and at DrupalJedi commentedI wrote a not about it http://www.eilyin.name/note/how-set-value-facet-default-drupal-54
I think you can easy adapt it for your requirements.
Comment #3
eugene.ilyin CreditAttribution: eugene.ilyin as a volunteer and at DrupalJedi commentedComment #5
Christian Le Fournis CreditAttribution: Christian Le Fournis commentedThe solution posted does not actually filter the result, it just enables the checkbox. How can we set a default facet field to pre-filter the result?
Thank you.