silverstripe-cms/_config.php
Sean Harvey b06d976693 MINOR Removed Director::addRules() item for Unsubscribe_Controller that should will be done by the Newsletter _config.php file instead
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@64364 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-10-16 05:11:11 +00:00

39 lines
1.1 KiB
PHP

<?php
/**
* URL rules for the CMS module
*
* @package cms
*/
Director::addRules(50, array(
'processes//$Action/$ID/$Batch' => 'BatchProcess_Controller',
'silverstripe' => '->admin',
'cms' => '->admin',
'admin/security//$Action/$ID/$OtherID' => 'SecurityAdmin',
'admin/help//$Action/$ID' => 'CMSHelp',
'admin/reports//$Action/$ID' => 'ReportAdmin',
'admin/assets//$Action/$ID' => 'AssetAdmin',
'admin/comments//$Action' => 'CommentAdmin',
'admin/ReportField//$Action/$ID/$Type/$OtherID' => 'ReportField_Controller',
'admin/bulkload//$Action/$ID/$OtherID' => 'BulkLoaderAdmin',
'admin//ImageEditor/$Action' => 'ImageEditor',
'admin/cms//$Action/$ID/$OtherID' => 'CMSMain',
'admin//$Action/$ID/$OtherID' => 'CMSMain',
'PageComment//$Action/$ID' => 'PageComment_Controller',
'dev/buildcache' => 'RebuildStaticCacheTask',
));
// Built-in modules
LeftAndMain::populate_default_menu();
// If there are reports, add the ReportAdmin tab in CMS
if(ReportAdmin::has_reports()) {
LeftAndMain::add_menu_item(
'reports',
_t('LeftAndMain.REPORTS', 'Reports', PR_HIGH, 'Menu title'),
'admin/reports/',
'ReportAdmin'
);
}
?>