mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
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
This commit is contained in:
parent
35d12228d0
commit
fa1c6ae3db
@ -4,6 +4,7 @@ Name: cmsextensions
|
|||||||
SilverStripe\Admin\LeftAndMain:
|
SilverStripe\Admin\LeftAndMain:
|
||||||
extensions:
|
extensions:
|
||||||
- SilverStripe\CMS\Controllers\LeftAndMainPageIconsExtension
|
- SilverStripe\CMS\Controllers\LeftAndMainPageIconsExtension
|
||||||
|
- SilverStripe\CMS\Controllers\LeftAndMainBatchActionsExtension
|
||||||
---
|
---
|
||||||
Name: cmsmodals
|
Name: cmsmodals
|
||||||
---
|
---
|
||||||
|
16
code/Controllers/LeftAndMainBatchActionsExtension.php
Normal file
16
code/Controllers/LeftAndMainBatchActionsExtension.php
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace SilverStripe\CMS\Controllers;
|
||||||
|
|
||||||
|
use SilverStripe\CMS\Controllers\CMSMain;
|
||||||
|
use SilverStripe\Core\Extension;
|
||||||
|
|
||||||
|
class LeftAndMainBatchActionsExtension extends Extension
|
||||||
|
{
|
||||||
|
public function updateBatchActionsForm(&$form)
|
||||||
|
{
|
||||||
|
$cmsMain = singleton(CMSMain::class);
|
||||||
|
$form->Fields()->insertAfter('Action', $cmsMain->BatchActionParameters());
|
||||||
|
return $form;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user