Comments (6)
Yes that's certainly possible, I'll look at adding that 🙂
How do you want the UI to then handle that filter? Options:
- The
Type
filter group is shown in the search UI.Events
is pre-selected - The
Type
filter group is shown in the search UI.Events
is forced on and not shown in the list of options. - The
Type
filter group is hidden altogether in the search UI.
from pagefind.
Fascinating approaches!
I'd say that most ideal, is:
- If we've specified a single value in the Type filter, it shouldn't even list the other "types".
- If we've mentioned multiple Types, it should show only those values in the dropdown?
from pagefind.
Thanks, I think that sounds like a good approach 🙂 I'll look at this in the near future
from pagefind.
Maybe general faceted navigation would make sense for Pagefind.
You can see a (very crude) implementation here: https://2ality.com/archive.html
In this case, the facets are: Year, Month, Tag.
from pagefind.
@rauschma as far as I can tell the underlying structure of Pagefind's filters supports a faceted navigation approach yes? So this would only impact the UI library.
I think for this kind of change I would really like to have a showcase of Pagefind UI widgets that can be used in place of the builtin widget, which saves the default from having to cater to every use case (and could also provide framework-specific components)
from pagefind.
@bglw Makes sense. Thanks for clarifying!
from pagefind.
Related Issues (20)
- Allow to specify the path of the config file HOT 1
- Allow to override default weight of HTML elements in config HOT 1
- Add UI search event hooks HOT 1
- Pagefind 1.1.0 output is not stable HOT 1
- Speical Symbols HOT 3
- Alpine Image for Pagefind HOT 1
- Configure max build file number HOT 2
- chore: update github action versions to handle node.js 16 deprecations HOT 2
- Use jieba to cut Chinese directly instead charabia HOT 3
- Pagefind picking incorrect dates HOT 2
- developer experience request: local build system
- Inconsistent search results HOT 1
- Exit code 101 "Permission denied" in CI HOT 2
- Issue with indexing and text that contains underscores HOT 2
- How to organize search into json file with the pagefind.js? HOT 1
- Does not build with rust 1.80.0 HOT 2
- Add in functionality for pages to be filtered only HOT 2
- Excerpts show "__PAGEFIND_ANCHOR__" HOT 4
- How to override URLs? HOT 1
- Security policy HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pagefind.