-
-
Notifications
You must be signed in to change notification settings - Fork 194
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
Live search view #176
Comments
mockup already has a livesearch pattern |
We need to apply it to plone5 and skin it. |
Can we just remove it completely from the public theme? We have it already |
I know it might be a minority position but I also agree with @djay on this. |
There is already a setting for it so it's easy to toggle off if you have scalability or theming problems with it. |
If someone turns that feature back on and the theme doesn't support it? And
|
I want to keep that feature in Plone and I think we should enable it by default. If people evaluate Plone, it is important that we provide such a common feature. It is way easier for experienced users to turn that off than for newbies to turn it on. |
absolutly. that feature was what impressed me most when i first encountered plone, but we should refactor it. the markup is way to complicated. but that's On Thu, 2014-07-24 at 22:40 -0700, Timo Stollenwerk wrote:
programmatic web development |
I think it should be considered carefully. |
the theming part can be solved by a refactoring to a simpler markup. IMO the livesearch overlay markup is too complicated and not consistent (e.g. no results is different from results). regarding scalability: can you please describe a scenario, where it leads to scalability troubles? IMO, it's just a search field, people will use anyways if they want to find something. maybe raising the threshold from where ajax requests are submitted will solve the problem? |
For me setting up the treshhold when the search is triggered to 4 letters years ago, helped a lot. But there was never a UI to configure that. I agree with the complains by djay, but fixing issues by just cutting features is not the first solution. Rethinking how a customer demand can be managed in a new way ist the good part of it. Lets do that. |
Implementing the live search on top of Bootstrap Typeahead or Select2 should be trivial and we should of course use sensible defaults. Removing livesearch in Plone 5 would require a PLIP. @djay Feel free to submit a PLIP, then we can discuss this in the FWT. My personal opinion is still that we should keep it for the reasons expressed above. |
How many custom themes for public sites have you guys done and left live BTW my point wasn't that its incredibly complex to theme live search but |
It'd be easy enough to modernize it, make it opt-in with the theme(applying classes or something). We already ship with some bootstrap patterns(js). It doesn't require to be bootstrap in order to use the patterns though. Let's implement it, make it better, perhaps easier to scale, etc. |
One effort that really pays off in making the theming work easier is to Fulvio On Fri, Jul 25, 2014 at 10:34 AM, Nathan Van Gheem <[email protected]
|
In order to release Plone 5 beta, I think we should just integrate the Mockup live search pattern (the discussion about removing live search should be done via a PLIP). Any taker? |
@ale-rt was working on it during our ploneconf mockup training. here is his branch: https://github.com/plone/mockup/compare/282-livesearch.js adn this is an issue handling it #287 When talking with Alessandro, he pointed out a very nice idea: the livesearch should use @@search as it's backend. Another thing: we should make the timeout between keypresses and the minimum characters configurable and also let admins easily disable livesearch. The biggest complaint against the livesearch view is, that it can bring down the site by too much requests from clients. These changes would help tuning it. |
no need to use a special json view response. Just use the existing query api that's already available. We already have a robust, query json api. |
The status of my work is summarized here: With @thet were wondering if it's possible to have a json or html response from the @@search depending on the headers: if they contain traces of ajax we could return json. The search delay should be configurable setting this parameter: |
@vangheem do we? give a pointer, please... |
it's used for related items, structure and querystring. Here is an example using the QueryHelper utility: https://github.com/plone/mockup/blob/master/mockup/patterns/relateditems/pattern.js#L323 https://github.com/plone/mockup/blob/master/mockup/js/utils.js#L10 |
bah, I just implement this and I didn't know that @ale-rt did all the of the work already... Sigh. @ale-rt would you might looking at my implementation and seeing if you have any additional improvements? plone/mockup@3004bca This is now integrated into plone core live search. |
Well done @vangheem! Thanks a lot for closing this! |
No description provided.
The text was updated successfully, but these errors were encountered: