2007-07-19 10:40:05 +00:00
|
|
|
<?php
|
2008-11-18 01:48:50 +00:00
|
|
|
|
2007-09-14 01:01:48 +00:00
|
|
|
/**
|
2008-11-02 21:27:55 +00:00
|
|
|
* Extended URL rules for the CMS module
|
2008-04-05 03:43:58 +00:00
|
|
|
*
|
2008-02-25 02:10:37 +00:00
|
|
|
* @package cms
|
2007-09-14 01:01:48 +00:00
|
|
|
*/
|
2007-10-05 00:51:45 +00:00
|
|
|
Director::addRules(50, array(
|
2011-03-24 21:14:20 +13:00
|
|
|
'' => 'RootURLController',
|
2008-08-09 03:54:55 +00:00
|
|
|
'admin/bulkload//$Action/$ID/$OtherID' => 'BulkLoaderAdmin',
|
2008-11-02 21:27:55 +00:00
|
|
|
'admin/cms//$Action/$ID/$OtherID' => 'CMSMain',
|
2008-12-15 01:31:01 +00:00
|
|
|
'dev/buildcache/$Action' => 'RebuildStaticCacheTask',
|
2007-07-19 10:40:05 +00:00
|
|
|
));
|
|
|
|
|
2011-03-22 21:59:01 +13:00
|
|
|
Director::addRules(1, array(
|
|
|
|
'$URLSegment//$Action/$ID/$OtherID' => 'ModelAsController',
|
|
|
|
));
|
|
|
|
|
2010-05-28 02:23:10 +00:00
|
|
|
// Register default side reports
|
|
|
|
SS_Report::register("SideReport", "SideReport_EmptyPages");
|
2010-02-04 05:00:19 +00:00
|
|
|
SS_Report::register("SideReport", "SideReport_RecentlyEdited");
|
2010-02-04 22:45:47 +00:00
|
|
|
if (class_exists('SubsiteReportWrapper')) SS_Report::register('ReportAdmin', 'SubsiteReportWrapper("BrokenLinksReport")',-20);
|
2010-02-04 05:00:19 +00:00
|
|
|
else SS_Report::register('ReportAdmin', 'BrokenLinksReport',-20);
|
2011-03-18 17:04:50 +13:00
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Register the default internal shortcodes.
|
|
|
|
*/
|
2011-03-23 10:40:09 +13:00
|
|
|
ShortcodeParser::get('default')->register('sitetree_link', array('SiteTree', 'link_shortcode_handler'));
|
|
|
|
|
2011-04-16 17:54:52 +12:00
|
|
|
Object::add_extension('File', 'SiteTreeFileExtension');
|
|
|
|
|
|
|
|
// TODO Remove once we can configure CMSMenu through static, nested configuration files
|
|
|
|
CMSMenu::remove_menu_item('CMSPageEditController');
|
2011-04-30 16:49:36 +12:00
|
|
|
CMSMenu::remove_menu_item('CMSPageSettingsController');
|
|
|
|
CMSMenu::remove_menu_item('CMSPageHistoryController');
|
|
|
|
CMSMenu::remove_menu_item('CMSPageReportsController');
|