-
-
Notifications
You must be signed in to change notification settings - Fork 4
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
Put a search box on the site homepage which targets /-/search #2
Comments
For the moment I can do this with a custom I'll also need to set a custom template variable that indicates if the datasette should be searchable or not. I'm going to think about ways to make Datasette templates more customizable by plugins in a way that lets them co-operate easily with each other. |
simonw/datasette#690 is where I'm thinking about better plugin UI customization hooks. |
The custom I've deployed |
Test failed in CI even though it passes on my laptop: https://circleci.com/gh/simonw/datasette-search-all/4 - that search form isn't reliably appearing on the homepage. |
Aha! The tests on my laptop fail against Datasette 0.37.1 (installed from pip) but pass against my own checkout of Datasette master (installed with |
... which is weird because none of the changes between 0.37.1 and current master have anything to do with template rendering: simonw/datasette@0.37.1...f7f31a Maybe this is a bug that only exhibits itself against Datasette installed from PyPI as opposed to Datasette installed with I'll try against a checkout of the 0.37.1 tag:
Tests fail with this. And |
Maybe it's related to this bug - simonw/datasette#689 - "template_context broken in >=0.35" |
Running |
... and now I'm back to a checkout of master and the tests are still failing. This seems to be a weird intermittent bug. I don't think it's really about the Datasette version at all. Need to investigate further. Core problem appears to be that |
This search box should only appear if there is at least one searchable table.
The text was updated successfully, but these errors were encountered: