Jump to content

Hard coded number of members on results page when searching

Ilya Hoilik

Recommended Posts


There is public variable $resultsToGet in IPS\Content\Search\Query. As a result, we can easily change number of items on the result page when searching.

Can you please create the same variable in IPS\core\modules\front\search\search.php? Because there is hard coded number, so we cannot control it:

$select	= \IPS\Db::i()->select( 'core_members.*', 'core_members', $where, $order, array( ( $page - 1 ) * 25, 25 ) );
$pagination = trim( \IPS\Theme::i()->getTemplate( 'global', 'core', 'global' )->pagination( $baseUrl, ceil( $count / 25 ), $page, 1 ) );

Thanks in advance!

Link to comment
Share on other sites

  • 1 month later...
  • 2 weeks later...


This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...