You are here:  » different search results required

Support Forum



different search results required

Submitted by wilkins on Thu, 2007-08-16 10:45 in

hi

I am trying to create two different search results for the same data. I would like one with the normal picture,title, desc, price, etc and one more basic with just title, desc, price. I have managed to change searchresults.php and search.php and renaming them, this seems to work OK. However I need the basic one to show more results than the orginal, as this function is controlled by the config.php is there any way to make the new search results show a different ammount of results.

thanks

brent

Submitted by support on Thu, 2007-08-16 15:38

Hi Brent,

At the top of your modified search.php, simply override $config_resultsPerPage = 10; as required immediately after the require("includes/common.php"); - for example:

  require("includes/common.php");
  $config_resultsPerPage = 10;

...then you can adjust the value 10 to whatever you wish to use in your shortened version.

Cheers,
David.