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.

Customising the CMS /

Increase number of rows shown when choosing file


Reply


2 Posts   236 Views

Avatar
sashion

Community Member, 23 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, 23 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