Drupal default search displaying 10 records per page. I want to display custom total results per page.

Comments

jbomb’s picture

Title: results per page » Adjust number of search results
Category: feature » support

I 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.

Alan D.’s picture

Version: 6.x-1.6 » 7.x-1.x-dev
Component: User interface » Code
Category: support » feature

This appears that it should be possible in D7. I'll look into it in the near future.

sillygwailo’s picture

Alan D.’s picture

Trivial update! Pushed into DEV, let me know if anyone has any issues!

Alan D.’s picture

Status: Active » Fixed

Marking fixed in the meantime :)

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.