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.

Customising the CMS /

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

Increase number of rows shown when choosing file


Go to End


2 Posts   1148 Views

Avatar
sashion

Community Member, 25 Posts

6 July 2014 at 2:09am

Hey folks,

I have a standard upload field in my CMS for the user to change a picture for example.

Due to the fact that there were already uploaded a lot of images before there is a big list of files where you can choose from but there are only displayed 10 pictures/items per page so i have to use the pagination a lot to get a quick overview.

has anyone an idea where to increase the number of rows / items in my Upload-File-Popup?

I use SS 3.0.5.

Thanks in advance,
Sash

Avatar
sashion

Community Member, 25 Posts

7 July 2014 at 9:00pm

Edited: 08/07/2014 10:52pm

Ok, finally I found at least the hardcoded piece of code.

Mybe that helps someone:
/framework/forms/UploadField.php
Line 990: $config->addComponent(new GridFieldPaginator(10));

Changing the 10 to something else changes the number of rows.

Cheers