-
Notifications
You must be signed in to change notification settings - Fork 88
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
Quicksearch vanishes #797
Comments
Maybe a better solution could be to patch 2k11s siderbar tpl and add a specific check if $serendipity['theme'] == '2k11', and only then hide the search? If a fallback theme is used, it should keep its distinct name, I think? |
(Adding a sidebar.tpl to themes means we can only patch it for available themes, and any custom-made theme would still be broken in that regard. And people would have to update external themes first...) |
That's a good idea, I hope we have all the data available in the tpl to do that check, and that it really knows its theme name. But that just needs a test :) |
Alternative solution: Maybe we should remove this check? I imagine that this is really surprising behaviour for a lot of situations, and to limit it to 2k11 now would also be surprising. Does hiding the quicksearch really still make sense for a theme whose templates are the foundation of almost all other themes? Is it necessary to hide the quicksearch sidebar plugin for some specific usecase (e.g. extending the built-in search with the livesearch plugin?) or is this just about not doubling the search - and if it is just for that, can't user just uninstall it if is unnecessary? |
The quicksearch sidebar plugin vanishes. Not in all themes, not in Skeleton. But it disappears in old blogs. My theory: 2k11 hides the plugin in favor of its own search, via the sidebar.tpl:
This now gets repeated. Solution: Add a sidebar.tpl without the quicksearch check to all themes?
The text was updated successfully, but these errors were encountered: