mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
Merge pull request #135 from silverstripe-scienceninjas/feature/config-enhancements
Feature/config enhancements
This commit is contained in:
commit
b13b5fefdb
22
_config.php
22
_config.php
@ -7,28 +7,6 @@
|
||||
define('CMS_DIR', 'cms');
|
||||
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.
|
||||
*/
|
||||
|
2
_config/adminpanels.yml
Normal file
2
_config/adminpanels.yml
Normal file
@ -0,0 +1,2 @@
|
||||
AdminRootController:
|
||||
default_panel: 'CMSPagesController'
|
7
_config/routes.yml
Normal file
7
_config/routes.yml
Normal file
@ -0,0 +1,7 @@
|
||||
---
|
||||
Name: modelascontrollerroutes
|
||||
Before: '*'
|
||||
---
|
||||
Director:
|
||||
rules:
|
||||
'$URLSegment//$Action/$ID/$OtherID': 'ModelAsController'
|
Loading…
Reference in New Issue
Block a user