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
Add a mini pager option to Search module results. #6083
Comments
It may also be good, though this is a nice to have rather than a must have, to allow the switch to be responsive to screen size (i.e. full pager on desktop, mini pager on mobile). |
Here's an initial PR up for testing/review: backdrop/backdrop#4417 It adds the following fieldset in the "Search settings" form at Seeking initial review/feedback on the implementation, but there's currently a problem that I would like to figure out (for which I have added a |
@yorkshire-pudding I think that this is a nice idea for how pagers should be behaving in general (those in views as well). Wanna file a separate issue for this? |
How to test this:
|
Added a bare bones issue here: #6094 |
Thanks @yorkshire-pudding 🙏🏼 I'm adding the "help wanted" label to see if anyone can figure out the issue with the necessity to be clearing the theme registry on every search result page in order to have the Views-provided mini pager be rendered. |
I posted a small suggestion to the PR: backdrop/backdrop#4417 (review) I'll look into the registry rebuild issue. |
I filed a replacement PR that fixes the registry issue and renames the keys stored in config: backdrop/backdrop#4424 |
Thanks for that @quicksketch 🙏🏼 ...I had tried to avoid having to "map" the options keys to the the respective theme function name, but now that you have implemented it, it doesn't look that bad 👍🏼 ...and that one-liner fix for the theme registry cache was so simple 🤦🏼 👍🏼 Code looks good to me, so RTBC 👍🏼 ...also giving a final round of testing. |
Yeah, I'd like to get us set up for renamespacing |
I've tested this in the PR sandbox by following the steps outlined in #6083 (comment) above. WFM, so this is good to go 👍🏼 The mini pager needs a little bit of love, so that #6089 is fixed, and also #6095. |
@klonos and @quicksketch - thanks very much for the quick implementation and fix! I'm pulling 4424 now and testing it on my test site. |
Welcome @leeksoup to the Backdrop community! I've added you to our "Docs and organization" group here on GitHub so you can now add issue labels. |
I merged backdrop/backdrop#4424 into 1.x for 1.25.0. @leeksoup if you encounter any problems, please file a follow-up issue. Today is the last day before feature freeze for 1.25.0 so we wanted to get this in quickly. Thanks! backdrop/backdrop@6860f7e by @klonos, @yorkshire-pudding, @stpaultim, @leeksoup, and @quicksketch. |
@quicksketch - No issues. Works great! |
@quicksketch (or any of our other @backdrop/core-committers) tiny PR to remove a now irrelevant/innaccurate inline comment that we missed to remove from the changes that got merged in: backdrop/backdrop#4430 |
Yup, clearly an accidental inclusion. I've merged it for 1.25.0. Thanks @klonos! |
Description of the need
All other pagers on my site (mostly generated using Views) have the "mini" pager. It's frustrating to have this one page use only the "full" style pager, and it generates a LOT of buttons which looks pretty silly.
Proposed solution
Ideally, the search module config would have an option to do a "mini" pager like Views module does.
Alternatives that have been considered
I have used Views with exposed filters for search in the past (like many years ago before Drupal's search was polished) but I would prefer to use the search module because it works a lot faster.
Additional information
Desired look:
Current look:
Draft of feature description for Press Release (1 paragraph at most)
Backdrop now includes the option to use mini pagers on search results pages for a sleek appearance.
TRANSLATION UPDATE
Changed strings:
The maximum number of items indexed in each pass of a <a href="@cron">cron maintenance task</a>. If necessary, reduce this number to prevent timeouts and memory errors while indexing.
The maximum number of items indexed in each pass of a <a href="@cron">cron maintenance task</a>. If necessary, reduce this number to prevent timeouts and memory errors while indexing.
Whether to apply a simple Chinese/Japanese/Korean tokenizer based on overlapping sequences. Turn this off if you want to use an external preprocessor for this instead. Does not affect other languages. <strong>Changing this setting will invalidate the search index.</strong>
Whether to apply a simple Chinese/Japanese/Korean tokenizer based on overlapping sequences. Turn this off if you want to use an external preprocessor for this instead. Does not affect other languages. <strong>Changing this setting will invalidate the search index.</strong>'
New strings:
Pager type
Full pager
Mini pager
Includes "Previous"/"Next" and "First"/"Last" links, as well as numbered links for each page of the search results.
Shows only "Previous"/"Next" links, and indications of the current and total number of search results pages.
The text was updated successfully, but these errors were encountered: