mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
ENHANCEMENT Changing CMSMain->RootForm() (edits SiteConfig record) from being invoked on the tree root node to having its own section called "Settings" in the CMS menu (through a new CMSSettingsController class)
This commit is contained in:
parent
17131f7a2a
commit
2ab9a062b5
13
code/controller/CMSSettingsController.php
Normal file
13
code/controller/CMSSettingsController.php
Normal file
@ -0,0 +1,13 @@
|
||||
<?php
|
||||
class CMSSettingsController extends CMSMain {
|
||||
|
||||
static $url_segment = 'settings';
|
||||
static $url_rule = '/$Action/$ID/$OtherID';
|
||||
static $menu_priority = -1;
|
||||
static $menu_title = 'Settings';
|
||||
|
||||
function getEditForm($id = null, $fields = null) {
|
||||
return $this->RootForm();
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user