Changing Default 25 Records Per Page in Admin

7 posts by 4 authors in: Forums > CMS Builder
Last Post: June 22, 2011   (RSS)

Hopefully a simple question,

In the admin, the default view is 25 results/records per page.

This can be changed using the dropdown but, how do we change this to default to say 100?

Thanks
Jan

Re: [aquaman] Changing Default 25 Records Per Page in Admin

By Chris - September 9, 2010 - edited: September 9, 2010

Hi Jan,

This is hardcoded in lib/menus/default/list_functions.php. You can change it there, but you'll need to remember to make the same change again if you ever upgrade CMS Builder.

It should be on line 56:

'perPage' => $isRelatedRecords ? $perPage : getFirstDefinedValue( @$_REQUEST['perPage'], 25 ),

You should be able to change that to any of these values:

5, 10, 25, 50, 100, 250, 1000

I hope this helps! Please let me know if you have any questions.
All the best,
Chris

Re: [chris] Changing Default 25 Records Per Page in Admin

Perfect, thanks!

Re: [aev] Changing Default 25 Records Per Page in Admin

By Chris - September 13, 2010

Hi aev,

That's a good idea, thanks! I've added that to our wishlist. :)
All the best,
Chris

Re: [Chris] Changing Default 25 Records Per Page in Admin

By Codee - June 21, 2011

Can you put this in the next release?

Re: [equinox69] Changing Default 25 Records Per Page in Admin

By aev - June 22, 2011

Agree, this is a feature we would very much like to have in CMSB.

-aev-