2007-07-19 12:40:05 +02:00
|
|
|
<?php
|
2008-11-18 02:48:50 +01:00
|
|
|
|
2012-03-23 23:57:49 +01:00
|
|
|
/**
|
|
|
|
* - CMS_DIR: Path relative to webroot, e.g. "cms"
|
|
|
|
* - CMS_PATH: Absolute filepath, e.g. "/var/www/my-webroot/cms"
|
|
|
|
*/
|
|
|
|
define('CMS_DIR', 'cms');
|
|
|
|
define('CMS_PATH', BASE_PATH . '/' . CMS_DIR);
|
|
|
|
|
2011-03-18 05:04:50 +01:00
|
|
|
/**
|
|
|
|
* Register the default internal shortcodes.
|
|
|
|
*/
|
2016-07-22 01:32:32 +02:00
|
|
|
ShortcodeParser::get('default')->register('sitetree_link', array('SilverStripe\\CMS\\Model\\SiteTree', 'link_shortcode_handler'));
|
2011-03-22 22:40:09 +01:00
|
|
|
|
2016-07-22 01:32:32 +02:00
|
|
|
File::add_extension('SilverStripe\\CMS\\Model\\SiteTreeFileExtension');
|
2011-04-16 07:54:52 +02:00
|
|
|
|
|
|
|
// TODO Remove once we can configure CMSMenu through static, nested configuration files
|
2016-07-22 01:32:32 +02:00
|
|
|
CMSMenu::remove_menu_item('SilverStripe\\CMS\\Controllers\\CMSMain');
|
|
|
|
CMSMenu::remove_menu_item('SilverStripe\\CMS\\Controllers\\CMSPageEditController');
|
|
|
|
CMSMenu::remove_menu_item('SilverStripe\\CMS\\Controllers\\CMSPageSettingsController');
|
|
|
|
CMSMenu::remove_menu_item('SilverStripe\\CMS\\Controllers\\CMSPageHistoryController');
|
2011-12-20 15:57:02 +01:00
|
|
|
CMSMenu::remove_menu_item('CMSPageReportsController');
|
2016-07-22 01:32:32 +02:00
|
|
|
CMSMenu::remove_menu_item('SilverStripe\\CMS\\Controllers\\CMSPageAddController');
|
2014-08-09 07:29:50 +02:00
|
|
|
|
2016-01-06 00:42:07 +01:00
|
|
|
CMSMenu::remove_menu_item("SiteConfigLeftAndMain");
|