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:
Ingo Schommer 2011-07-06 08:39:34 +02:00
parent 17131f7a2a
commit 2ab9a062b5

View 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();
}
}