Records per page

In the config.php there is an array with 4 lines:
$records_per_page_ar[0] = 10;
$records_per_page_ar[1] = 20;
$records_per_page_ar[2] = 50;
$records_per_page_ar[3] = 100;

One can override these numbers (10, 20, ...) and one can add additional lines in config_custom.php. But when you want to use less lines, p.e. only 2, then you have to make a modification in config.php, for example this:
$records_per_page_ar[0] = 10;
$records_per_page_ar[1] = 20;
//$records_per_page_ar[2] = 50;
//$records_per_page_ar[3] = 100;

And changing config.php is something one doesn't want to do.

Suggestion
Put this array in config.php:
$records_per_page_ar[0] = 10;
//$records_per_page_ar[1] = 20;
//$records_per_page_ar[2] = 50;
//$records_per_page_ar[3] = 100;


Greetings, Ronny
 
Upvote 0

eugenio

Administrator
Staff member
Hello,
you are right Ronny, I have never thought about the need of having less lines!

But with your solution you have only one item by default and I don't like that.

Maybe you can solve it by adding to config_custom
unset($records_per_page_ar[1]);
unset($records_per_page_ar[2]);
unset($records_per_page_ar[3]);
....
but I'll think about a more elegant solution.

Best,
 
Top