2007-07-19 12:40:05 +02:00
|
|
|
<?php
|
2007-09-14 03:01:48 +02:00
|
|
|
/**
|
|
|
|
* URL rules for the CMS module
|
2008-04-05 05:43:58 +02:00
|
|
|
*
|
2008-02-25 03:10:37 +01:00
|
|
|
* @package cms
|
2007-09-14 03:01:48 +02:00
|
|
|
*/
|
2007-10-05 02:51:45 +02:00
|
|
|
Director::addRules(50, array(
|
2007-07-19 12:40:05 +02:00
|
|
|
'processes/$Action/$ID/$Batch' => 'BatchProcess_Controller',
|
2008-02-25 03:10:37 +01:00
|
|
|
'silverstripe' => '->admin',
|
|
|
|
'cms' => '->admin',
|
2007-07-19 12:40:05 +02:00
|
|
|
'admin/security/$Action/$ID/$OtherID' => 'SecurityAdmin',
|
|
|
|
'admin/help/$Action/$ID' => 'CMSHelp',
|
|
|
|
'admin/newsletter/$Action/$ID' => 'NewsletterAdmin',
|
|
|
|
'admin/reports/$Action/$ID' => 'ReportAdmin',
|
|
|
|
'admin/assets/$Action/$ID' => 'AssetAdmin',
|
2007-08-13 02:32:48 +02:00
|
|
|
'admin/comments/$Action' => 'CommentAdmin',
|
2007-07-19 12:40:05 +02:00
|
|
|
'admin/ReportField/$Action/$ID/$Type/$OtherID' => 'ReportField_Controller',
|
|
|
|
'admin/bulkload/$Action/$ID/$OtherID' => 'BulkLoaderAdmin',
|
2007-09-15 03:08:25 +02:00
|
|
|
'admin/ImageEditor/$Action' => 'ImageEditor',
|
2007-07-19 12:40:05 +02:00
|
|
|
'admin/$Action/$ID/$OtherID' => 'CMSMain',
|
2008-02-25 03:10:37 +01:00
|
|
|
'unsubscribe/$Email/$MailingList' => 'Unsubscribe_Controller'
|
2007-07-19 12:40:05 +02:00
|
|
|
));
|
|
|
|
|
2008-04-05 05:43:58 +02:00
|
|
|
// Built-in modules
|
|
|
|
LeftAndMain::add_menu_item(
|
|
|
|
"content",
|
|
|
|
_t('LeftAndMain.SITECONTENT',"Site Content",PR_HIGH,"Menu title"),
|
|
|
|
"admin/",
|
|
|
|
"CMSMain"
|
|
|
|
);
|
|
|
|
LeftAndMain::add_menu_item(
|
|
|
|
"files",
|
|
|
|
_t('LeftAndMain.FILESIMAGES',"Files & Images",PR_HIGH,"Menu title"),
|
|
|
|
"admin/assets/",
|
|
|
|
"AssetAdmin"
|
|
|
|
);
|
|
|
|
LeftAndMain::add_menu_item(
|
|
|
|
"newsletter",
|
|
|
|
_t('LeftAndMain.NEWSLETTERS',"Newsletters",PR_HIGH,"Menu title"),
|
|
|
|
"admin/newsletter/",
|
|
|
|
"NewsletterAdmin"
|
|
|
|
);
|
|
|
|
if(ReportAdmin::has_reports()) {
|
|
|
|
LeftAndMain::add_menu_item(
|
|
|
|
"report",
|
|
|
|
_t('LeftAndMain.REPORTS',"Reports",PR_HIGH,'Menu title'),
|
|
|
|
"admin/reports/",
|
|
|
|
"ReportAdmin"
|
|
|
|
);
|
|
|
|
}
|
|
|
|
LeftAndMain::add_menu_item(
|
|
|
|
"security",
|
|
|
|
_t('LeftAndMain.SECURITY',"Security",PR_HIGH,'Menu title'),
|
|
|
|
"admin/security/",
|
|
|
|
"SecurityAdmin"
|
|
|
|
);
|
|
|
|
LeftAndMain::add_menu_item(
|
|
|
|
"comments",
|
|
|
|
_t('LeftAndMain.COMMENTS',"Comments",PR_HIGH,'Menu title'),
|
|
|
|
"admin/comments/",
|
|
|
|
"CommentAdmin"
|
|
|
|
);
|
|
|
|
LeftAndMain::add_menu_item(
|
|
|
|
"help",
|
|
|
|
_t('LeftAndMain.HELP',"Help",PR_HIGH,'Menu title'),
|
|
|
|
"http://userhelp.silverstripe.com"
|
|
|
|
);
|
|
|
|
|
|
|
|
?>
|