Skip to content

Commit

Permalink
ENHANCEMENT Changing CMSMain->RootForm() (edits SiteConfig record) fr…
Browse files Browse the repository at this point in the history
…om being invoked on the tree root node to having its own section called "Settings" in the CMS menu (through a new CMSSettingsController class)
  • Loading branch information
chillu committed Jul 8, 2011
1 parent 17131f7 commit 2ab9a06
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions code/controller/CMSSettingsController.php
@@ -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();
}

}

0 comments on commit 2ab9a06

Please sign in to comment.