IMPR: Remove bulk uploader for Slider

This commit is contained in:
Tony Air 2024-06-20 19:49:33 +02:00
parent a87896186c
commit 394b50670a

View File

@ -132,11 +132,11 @@ class SliderElement extends ElementSlideshow
$config = $grid->getConfig(); $config = $grid->getConfig();
$config->removeComponentsByType(GridField_ActionMenu::class); $config->removeComponentsByType(GridField_ActionMenu::class);
$bulk = new BulkUploader('Image', SlideImage::class, false); /*$bulk = new BulkUploader('Image', SlideImage::class, false);
$bulk $bulk
->setUfSetup('setFolderName', 'Uploads/SlideImages'); ->setUfSetup('setFolderName', 'Uploads/SlideImages');
//->setUfSetup('getValidator.setAllowedExtensions', ['jpg', 'jpeg', 'png', 'gif']); //->setUfSetup('getValidator.setAllowedExtensions', ['jpg', 'jpeg', 'png', 'gif']);
$config->addComponent($bulk); $config->addComponent($bulk);*/
$config->addComponent(new \Colymba\BulkManager\BulkManager()); $config->addComponent(new \Colymba\BulkManager\BulkManager());
$columns = new GridFieldEditableColumns(); $columns = new GridFieldEditableColumns();