mirror of
https://github.com/colymba/GridFieldBulkEditingTools.git
synced 2024-10-22 09:05:57 +00:00
Allow setting of canAttachExisting and canPreviewFolder
Allow the setting of canPreviewFolder (to hide upload location) and canAttachExisting (to hide the "From files" button) to the UploadField, via GridFieldBulkUpload config.
This commit is contained in:
parent
1fefcad1e3
commit
d754e430fd
@ -21,7 +21,9 @@ class GridFieldBulkUpload implements GridField_HTMLProvider, GridField_URLHandle
|
||||
'fileRelationName' => null,
|
||||
'folderName' => 'bulkUpload',
|
||||
'maxFileSize' => null,
|
||||
'sequentialUploads' => false
|
||||
'sequentialUploads' => false,
|
||||
'canAttachExisting' => true,
|
||||
'canPreviewFolder' => true
|
||||
);
|
||||
|
||||
|
||||
@ -161,6 +163,9 @@ class GridFieldBulkUpload implements GridField_HTMLProvider, GridField_URLHandle
|
||||
->setConfig('previewMaxHeight', 20)
|
||||
->setConfig('changeDetection', false)
|
||||
|
||||
->setConfig('canPreviewFolder', $this->getConfig('canPreviewFolder'))
|
||||
->setConfig('canAttachExisting', $this->getConfig('canAttachExisting'))
|
||||
|
||||
->setTemplate('GridFieldBulkUploadField')
|
||||
->setDownloadTemplateName('colymba-bulkuploaddownloadtemplate')
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user