Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Drupal default search displaying 10 records per page. I want to display custom total results per page.
Comments
Comment #1
jbomb CreditAttribution: jbomb commentedI don't think this can be accomplished with this module because the node module implements do_search(), which seems to be hardcoded to retrieve 10 records at a time. You probably want to look into replacing the Search module's interface with views. Create a view, add and expose the *search* filter, and then set your pager rules and fields. The last step would be to set the path of your view to "search/node." You might find more helpful tips in replacing drupal 6 core search with views search.
Comment #2
Alan D. CreditAttribution: Alan D. commentedThis appears that it should be possible in D7. I'll look into it in the near future.
Comment #3
sillygwailoRelated issue in core: #702940: Make the number of results per page configurable
Comment #4
Alan D. CreditAttribution: Alan D. commentedTrivial update! Pushed into DEV, let me know if anyone has any issues!
Comment #5
Alan D. CreditAttribution: Alan D. commentedMarking fixed in the meantime :)