Increase pagination in Silverstripe admin

I am using Silverstripe 3.1. The site will have hundreds of users and many files / assets.

How to increase the number of items listed in (from 15 to 50 or so per page) in the administrator for users and files.

Even better if I can set it as the default for all admin areas.

+4
source share
1 answer

You can do this manually by overriding getCMSFields () and using the method $field->setItemsPerPage(50)in the paginator field of the grid.

Another option is to use the yaml file. You need to create config.yml and put it in the _config directory and then put it in your yaml file:

GridFieldPaginator:
    itemsPerPage: 50

Check also these links:

+7

Source: https://habr.com/ru/post/1626996/


All Articles