-
-
Notifications
You must be signed in to change notification settings - Fork 11
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
Hide languages dropdown / set filter default to "All languages" #193
Comments
There seems to be an if-condition: When fixed to I'll try to understand how this module works and how it can be used on a single-language site without any language dropdowns, filters, etc. |
Make sense, but one parameter for two purposes is not a good way to go, since there is someone hope to hide the languages filter and search with current page language only. I'd like to add two parameters, one for the languages filter, one for the languages (all or current page language). |
You are right. When there is only one language, this dropdown should be hidden anyway (see my above comment). When this is fixed (and results are found), this is totally fine. I still need to figure out if I misconfigured something, since without setting the language to "All" every time, there are no search result at all. But this might as well be a configuration issue on my side. |
I see, will check this use case later, let me know if you want to open a PR to fix it.
Do you have a public repo or live site to check this issue? |
I've tested it myself on both of monolingual and multilingual sites, should be fixed since v0.8.5.
But I couldn't reproduce this, please share more details if you have any. |
Great, thank you very much! |
Is there an elegant way to select "All languages" by default?
Currently the languages from the
lang
attribute in the root HTML element is used. However in some cases it might be desireable to ignore i18n and just select all languages by default (e.g. when the wholesearch-form-meta
toolbar is not needed and can be hidden via CSS).Would a
filter_languages
parameter make sense in this context? (Defaulttrue
to maintain compatibility, but when set tofalse
, search all languages and hide the dropdown)The text was updated successfully, but these errors were encountered: