Permalink
Browse files

ENHANCEMENT Changing CMSMain->RootForm() (edits SiteConfig record) fr…

…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...
1 parent 17131f7 commit 2ab9a062b50e1fa5b92b91e7f0255bc93d28e9b1 @chillu chillu committed Jul 6, 2011
Showing with 13 additions and 0 deletions.
  1. +13 −0 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.