Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

How to change count items per page for popup window UploadField


Go to End


3 Posts   2035 Views

Avatar
WebSpilka

Community Member, 89 Posts

13 October 2014 at 5:50am

Edited: 13/10/2014 5:52am

When I click upload file on UploadField::create.
It open dialog (admin/pages/edit/EditForm/field/Images/select) where my file show in paginated data grid.
It show 8 file per page.
How to change it to 20 file per page ?

Attached Files
Avatar
UncleCheese

Forum Moderator, 4102 Posts

14 October 2014 at 11:46pm

Unfotunately, this setting is not configurable. The value of 8 is hardcoded on line 1604 of UploadField.php:

$config->addComponent(new GridFieldPaginator(8));

Might be something to submit as a pull request, but it was probably done for a reason -- perhaps due to the height constraint of the popup?

Avatar
WebSpilka

Community Member, 89 Posts

15 October 2014 at 8:53pm

Thank you
Such a solution is fine with me