Compare commits

..

1 Commits

Author SHA1 Message Date
Guy Sartorelli
1d46b724c9
Merge fe9088698f into bd48b04731 2024-10-14 03:02:14 +00:00
4 changed files with 11 additions and 7 deletions

View File

@ -1,5 +1,10 @@
<?php
use SilverStripe\Admin\CMSMenu;
use SilverStripe\CMS\Controllers\CMSMain;
use SilverStripe\CMS\Controllers\CMSPageAddController;
use SilverStripe\CMS\Controllers\CMSPageEditController;
use SilverStripe\CMS\Controllers\CMSPageSettingsController;
use SilverStripe\CMS\Model\SiteTree;
use SilverStripe\Core\Manifest\ModuleLoader;
use SilverStripe\Forms\HTMLEditor\TinyMCEConfig;
@ -26,3 +31,8 @@ ShortcodeParser::get('default')->register(
'sitetree_link',
[SiteTree::class, 'link_shortcode_handler']
);
CMSMenu::remove_menu_class(CMSMain::class);
CMSMenu::remove_menu_class(CMSPageEditController::class);
CMSMenu::remove_menu_class(CMSPageSettingsController::class);
CMSMenu::remove_menu_class(CMSPageAddController::class);

View File

@ -32,8 +32,6 @@ class CMSPageAddController extends CMSPageEditController
private static $menu_title = 'Add page';
private static $required_permission_codes = 'CMS_ACCESS_CMSMain';
private static $ignore_menuitem = true;
private static $allowed_actions = [
'AddForm',
'doAdd',

View File

@ -28,13 +28,11 @@ class CMSPageEditController extends CMSMain
private static $required_permission_codes = 'CMS_ACCESS_CMSMain';
private static $ignore_menuitem = true;
private static $allowed_actions = [
'AddToCampaignForm',
];
public function getClientConfig(): array
public function getClientConfig()
{
return ArrayLib::array_merge_recursive(parent::getClientConfig(), [
'form' => [

View File

@ -15,8 +15,6 @@ class CMSPageSettingsController extends CMSMain
private static $required_permission_codes = 'CMS_ACCESS_CMSMain';
private static $ignore_menuitem = true;
public function getEditForm($id = null, $fields = null)
{
$record = $this->getRecord($id ?: $this->currentPageID());