Permalink
Browse files

Merge pull request #135 from silverstripe-scienceninjas/feature/confi…

…g-enhancements

Feature/config enhancements
  • Loading branch information...
2 parents 1614bc4 + f410ccf commit b13b5fefdbc85def4a23992e673a974fc2b1bb68 @sminnee sminnee committed May 21, 2012
Showing with 9 additions and 22 deletions.
  1. +0 −22 _config.php
  2. +2 −0 _config/adminpanels.yml
  3. +7 −0 _config/routes.yml
View
@@ -8,28 +8,6 @@
define('CMS_PATH', BASE_PATH . '/' . CMS_DIR);
/**
- * Extended URL rules for the CMS module
- *
- * @package cms
- */
-Director::addRules(50, array(
- '' => 'RootURLController',
- 'admin/bulkload//$Action/$ID/$OtherID' => 'BulkLoaderAdmin',
- 'admin/cms//$Action/$ID/$OtherID' => 'CMSMain',
- 'admin/asset//$Action/$ID/$OtherID' => 'AssetAdmin',
- 'dev/buildcache/$Action' => 'RebuildStaticCacheTask',
-));
-
-// Default to "pages" view unless a URLSegment within /admin is specified
-Director::addRules(20, array(
- 'admin//$action/$ID/$OtherID' => '->admin/pages'
-));
-
-Director::addRules(1, array(
- '$URLSegment//$Action/$ID/$OtherID' => 'ModelAsController',
-));
-
-/**
* Register the default internal shortcodes.
*/
ShortcodeParser::get('default')->register('sitetree_link', array('SiteTree', 'link_shortcode_handler'));
View
@@ -0,0 +1,2 @@
+AdminRootController:
+ default_panel: 'CMSPagesController'
View
@@ -0,0 +1,7 @@
+---
+Name: modelascontrollerroutes
+Before: '*'
+---
+Director:
+ rules:
+ '$URLSegment//$Action/$ID/$OtherID': 'ModelAsController'

0 comments on commit b13b5fe

Please sign in to comment.