2007-07-19 12:40:05 +02:00
|
|
|
<?php
|
2008-11-18 02:48:50 +01:00
|
|
|
|
2007-09-14 03:01:48 +02:00
|
|
|
/**
|
2008-11-02 22:27:55 +01:00
|
|
|
* Extended 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(
|
2011-03-24 09:14:20 +01:00
|
|
|
'' => 'RootURLController',
|
2008-08-09 05:54:55 +02:00
|
|
|
'admin/bulkload//$Action/$ID/$OtherID' => 'BulkLoaderAdmin',
|
2008-11-02 22:27:55 +01:00
|
|
|
'admin/cms//$Action/$ID/$OtherID' => 'CMSMain',
|
2008-12-15 02:31:01 +01:00
|
|
|
'dev/buildcache/$Action' => 'RebuildStaticCacheTask',
|
2007-07-19 12:40:05 +02:00
|
|
|
));
|
|
|
|
|
2011-03-22 09:59:01 +01:00
|
|
|
Director::addRules(1, array(
|
|
|
|
'$URLSegment//$Action/$ID/$OtherID' => 'ModelAsController',
|
|
|
|
));
|
|
|
|
|
2010-05-28 04:23:10 +02:00
|
|
|
// Register default side reports
|
|
|
|
SS_Report::register("SideReport", "SideReport_EmptyPages");
|
2010-02-04 06:00:19 +01:00
|
|
|
SS_Report::register("SideReport", "SideReport_RecentlyEdited");
|
2010-02-04 23:45:47 +01:00
|
|
|
if (class_exists('SubsiteReportWrapper')) SS_Report::register('ReportAdmin', 'SubsiteReportWrapper("BrokenLinksReport")',-20);
|
2010-02-04 06:00:19 +01:00
|
|
|
else SS_Report::register('ReportAdmin', 'BrokenLinksReport',-20);
|
2011-03-18 05:04:50 +01:00
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Register the default internal shortcodes.
|
|
|
|
*/
|
2011-03-22 22:40:09 +01:00
|
|
|
ShortcodeParser::get('default')->register('sitetree_link', array('SiteTree', 'link_shortcode_handler'));
|
|
|
|
|
2011-04-15 11:37:15 +02:00
|
|
|
Object::add_extension('File', 'SiteTreeFileExtension');
|