From fa1c6ae3db2c0e5257bab796f85efbee4116e70c Mon Sep 17 00:00:00 2001 From: Benjamin Blake Date: Wed, 6 Jul 2022 22:49:24 -0600 Subject: [PATCH] Created a batch action extension for LeftAndMain + Created an extension to add the `BatchActionParameters` fields from CMSMain to the `BatchActionsForm` in LeftAndMain + Applied the extension to LeftAndMain using YAML --- _config/config.yml | 1 + .../LeftAndMainBatchActionsExtension.php | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 code/Controllers/LeftAndMainBatchActionsExtension.php diff --git a/_config/config.yml b/_config/config.yml index c480278a..47a76215 100644 --- a/_config/config.yml +++ b/_config/config.yml @@ -4,6 +4,7 @@ Name: cmsextensions SilverStripe\Admin\LeftAndMain: extensions: - SilverStripe\CMS\Controllers\LeftAndMainPageIconsExtension + - SilverStripe\CMS\Controllers\LeftAndMainBatchActionsExtension --- Name: cmsmodals --- diff --git a/code/Controllers/LeftAndMainBatchActionsExtension.php b/code/Controllers/LeftAndMainBatchActionsExtension.php new file mode 100644 index 00000000..443931e7 --- /dev/null +++ b/code/Controllers/LeftAndMainBatchActionsExtension.php @@ -0,0 +1,16 @@ +Fields()->insertAfter('Action', $cmsMain->BatchActionParameters()); + return $form; + } +} \ No newline at end of file