Change Number of Listings "Per Page"

3 posts by 2 authors in: Forums > CMS Builder
Last Post: April 12, 2010   (RSS)

By zip222 - April 12, 2010

Is there a way to permanently change the default number of records that show up per page in CMS Builder? i need to manually sort 70+ records and it would be much easier if the list didn't keep returning to 25 at a time.

Re: [zip222] Change Number of Listings "Per Page"

By Kenny - April 12, 2010

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