silverstripe-cms/_config.php

26 lines
1.0 KiB
PHP
Raw Normal View History

<?php
/**
* - 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);
/**
* 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'));
2016-07-22 01:32:32 +02:00
File::add_extension('SilverStripe\\CMS\\Model\\SiteTreeFileExtension');
// 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');
CMSMenu::remove_menu_item('CMSPageReportsController');
2016-07-22 01:32:32 +02:00
CMSMenu::remove_menu_item('SilverStripe\\CMS\\Controllers\\CMSPageAddController');
CMSMenu::remove_menu_item("SiteConfigLeftAndMain");