Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QUESTION: Is it possible to use the InstantSearch refinementlist with Jekyll #115

Open
mrpbennett opened this issue Feb 21, 2019 · 2 comments

Comments

@mrpbennett
Copy link

If so how is the best way to implement this? I have the standard search and results, but id like to be able to filter this via check boxes.

@pixelastic
Copy link
Collaborator

Yep, it would be definitely possible.

What would you like to filter on? By default all records have a collection, categories and tags field setup when applicable. Values for those fields are directly extracted from Jekyll collections/categories/tags. You can use those fields in the InstantSearch widget configuration to add some checkbox filtering.

If you'd like to filter on other custom properties, you might need to update the settings option to pass your own attributesForFaceting.

@mrpbennett
Copy link
Author

Thanks for the reply @pixelastic I managed to get this sorted after some tinkering and I am just blown away by the speed of it. I really did just geek over a search function! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants