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   225 Views

Avatar
sashion

6 July 2014 at 2:09am Community Member, 23 Posts

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

7 July 2014 at 9:00pm (Last edited: 8 July 2014 10:52pm), Community Member, 23 Posts

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