Today to modify the DEDECMS search results, found that when http://www.aliyun.com/zixun/aggregation/6579.html "> users use the DEDECMS default search, showing only 10 search results, If the results of the search more, users need to read a lot of pages to find the information they need!
To improve the user experience we will make a few small changes can be done!
Dedecms Although there is a search template page, but does not control the number of search results displayed, by entering the keyword, we found that the search using the PHP program is: http://www.ithov.com/plus/search.php
We directly modify the code for line 5th of the search.php file:
Will
$pagesize = (isset ($pagesize) && is_numeric ($pagesize))? $pagesize: 10;
Modified to:
$pagesize = (isset ($pagesize) && is_numeric ($pagesize))? $pagesize: 20;
Let's see if the search results show 20 per page! Success! You can modify the parameters of $pagesize:20 according to your own needs.