mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Merge pull request #2044 from jonom/patch-3
FIX #527 : Add Thumbnails to 'Choose another file' dialogue
This commit is contained in:
commit
1c150ac3a0
@ -1547,8 +1547,13 @@ class UploadField_SelectHandler extends RequestHandler {
|
||||
$config = GridFieldConfig::create();
|
||||
$config->addComponent(new GridFieldSortableHeader());
|
||||
$config->addComponent(new GridFieldFilterHeader());
|
||||
$config->addComponent(new GridFieldDataColumns());
|
||||
$config->addComponent(new GridFieldPaginator(10));
|
||||
$config->addComponent($columns = new GridFieldDataColumns());
|
||||
$columns->setDisplayFields(array(
|
||||
'StripThumbnail' => '',
|
||||
'Name' => 'Name',
|
||||
'Title' => 'Title'
|
||||
));
|
||||
$config->addComponent(new GridFieldPaginator(8));
|
||||
|
||||
// If relation is to be autoset, we need to make sure we only list compatible objects.
|
||||
$baseClass = $this->parent->getRelationAutosetClass();
|
||||
|
Loading…
x
Reference in New Issue
Block a user