Change the default for perPage in the admin/edit UI
2 posts by 2 authors in: Forums > CMS Builder
Last Post: January 29, 2009 (RSS)
By aev - January 29, 2009
Hi!
How can we change the default value for "perPage" in the admin/edit UI. It is now set to 25, we would like to change it to a larger value like 50 or 100.
-aev-
How can we change the default value for "perPage" in the admin/edit UI. It is now set to 25, we would like to change it to a larger value like 50 or 100.
-aev-
Re: [aev] Change the default for perPage in the admin/edit UI
By Kenny - January 29, 2009
Hi aev -
Go to /lib/menus/default/list_functions.php and around line 35 you will see:
Replace the 25 with the number of records you would like to see. You can put values that are not in the drop-down menu (other than 5, 10, 25, 50, 100) such as 42. When you do, 42 records will show up, but the drop-down menu will say 5.
To change those options, go to /lib/menus/default/list.php and around line 55 you will see where you can modify these numbers.
Let me know if you run into any problems
Kenny
Go to /lib/menus/default/list_functions.php and around line 35 you will see:
if (!$perPage) { $perPage = getFirstDefinedValue(@$lastState['perPage'], 25); }
Replace the 25 with the number of records you would like to see. You can put values that are not in the drop-down menu (other than 5, 10, 25, 50, 100) such as 42. When you do, 42 records will show up, but the drop-down menu will say 5.
To change those options, go to /lib/menus/default/list.php and around line 55 you will see where you can modify these numbers.
Let me know if you run into any problems
Kenny