2007-07-19 10:40:05 +00:00
|
|
|
<?php
|
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(
|
2008-08-09 03:54:55 +00:00
|
|
|
'processes//$Action/$ID/$Batch' => 'BatchProcess_Controller',
|
2008-02-25 02:10:37 +00:00
|
|
|
'silverstripe' => '->admin',
|
|
|
|
'cms' => '->admin',
|
2008-08-09 03:54:55 +00:00
|
|
|
'admin/help//$Action/$ID' => 'CMSHelp',
|
|
|
|
'admin/ReportField//$Action/$ID/$Type/$OtherID' => 'ReportField_Controller',
|
|
|
|
'admin/bulkload//$Action/$ID/$OtherID' => 'BulkLoaderAdmin',
|
|
|
|
'admin//ImageEditor/$Action' => 'ImageEditor',
|
2008-11-02 21:27:55 +00:00
|
|
|
'admin/cms//$Action/$ID/$OtherID' => 'CMSMain',
|
2008-08-09 05:07:31 +00:00
|
|
|
'PageComment//$Action/$ID' => 'PageComment_Controller',
|
2008-08-12 02:59:27 +00:00
|
|
|
'dev/buildcache' => 'RebuildStaticCacheTask',
|
2007-07-19 10:40:05 +00:00
|
|
|
));
|
|
|
|
|
2008-11-02 21:27:55 +00:00
|
|
|
CMSMenu::populate_menu();
|
2008-04-05 03:43:58 +00:00
|
|
|
|
2008-11-12 04:31:53 +00:00
|
|
|
// Javascript combined files
|
|
|
|
Requirements::combine_files(
|
|
|
|
'assets/base.js',
|
|
|
|
array(
|
|
|
|
'jsparty/prototype.js',
|
|
|
|
'jsparty/behaviour.js',
|
|
|
|
'jsparty/prototype_improvements.js',
|
|
|
|
'jsparty/jquery/jquery.js',
|
|
|
|
'jsparty/jquery/plugins/livequery/jquery.livequery.js',
|
|
|
|
'jsparty/jquery/plugins/effen/jquery.fn.js',
|
|
|
|
'sapphire/javascript/core/jquery.ondemand.js',
|
|
|
|
'jsparty/jquery/jquery_improvements.js',
|
|
|
|
'jsparty/firebug/firebugx.js',
|
|
|
|
'sapphire/javascript/i18n.js',
|
|
|
|
)
|
|
|
|
);
|
|
|
|
|
|
|
|
Requirements::combine_files(
|
|
|
|
'assets/leftandmain.js',
|
|
|
|
array(
|
|
|
|
'jsparty/loader.js',
|
|
|
|
'jsparty/hover.js',
|
|
|
|
'jsparty/layout_helpers.js',
|
|
|
|
'jsparty/scriptaculous/effects.js',
|
|
|
|
'jsparty/scriptaculous/dragdrop.js',
|
|
|
|
'jsparty/scriptaculous/controls.js',
|
|
|
|
'jsparty/greybox/AmiJS.js',
|
|
|
|
'jsparty/greybox/greybox.js',
|
|
|
|
'cms/javascript/LeftAndMain.js',
|
|
|
|
'cms/javascript/LeftAndMain_left.js',
|
|
|
|
'cms/javascript/LeftAndMain_right.js',
|
|
|
|
//'jsparty/tiny_mce2/tiny_mce_src.js',
|
|
|
|
'jsparty/tree/tree.js',
|
|
|
|
'jsparty/tabstrip/tabstrip.js',
|
|
|
|
'cms/javascript/TinyMCEImageEnhancement.js',
|
|
|
|
'jsparty/SWFUpload/SWFUpload.js',
|
|
|
|
'cms/javascript/Upload.js',
|
|
|
|
'sapphire/javascript/TreeSelectorField.js',
|
|
|
|
'cms/javascript/ThumbnailStripField.js',
|
|
|
|
)
|
|
|
|
);
|
|
|
|
|
|
|
|
Requirements::combine_files(
|
|
|
|
'assets/cmsmain.js',
|
|
|
|
array(
|
|
|
|
'cms/javascript/CMSMain.js',
|
|
|
|
'cms/javascript/CMSMain_left.js',
|
|
|
|
'cms/javascript/CMSMain_right.js',
|
|
|
|
'cms/javascript/SideTabs.js',
|
|
|
|
'cms/javascript/TaskList.js',
|
|
|
|
'cms/javascript/SideReports.js',
|
|
|
|
'cms/javascript/LangSelector.js',
|
|
|
|
'cms/javascript/TranslationTab.js',
|
|
|
|
'jsparty/calendar/calendar.js',
|
|
|
|
'jsparty/calendar/lang/calendar-en.js',
|
|
|
|
'jsparty/calendar/calendar-setup.js',
|
|
|
|
)
|
|
|
|
);
|
|
|
|
|
2008-11-02 21:27:55 +00:00
|
|
|
CMSMenu::add_link(
|
|
|
|
'Help',
|
|
|
|
_t('LeftAndMain.HELP', 'Help', PR_HIGH, 'Menu title'),
|
|
|
|
'http://userhelp.silverstripe.com'
|
|
|
|
);
|
2008-10-09 02:45:01 +00:00
|
|
|
|
2008-08-12 02:59:27 +00:00
|
|
|
?>
|