silverstripe-subsites/_config.php

21 lines
848 B
PHP
Raw Normal View History

<?php
/**
* The subsites module modifies the behaviour of the CMS - in the SiteTree and Group databases - to store information
* about a number of sub-sites, rather than a single site.
*/
Object::add_extension('SiteTree', 'SiteTreeSubsites');
// Hack - this ensures that the SiteTree defineMethods gets called before any of its subclasses...
new SiteTree();
Object::add_extension('ContentController', 'ControllerSubsites');
Object::add_extension('LeftAndMain', 'LeftAndMainSubsites');
Object::add_extension('LeftAndMain', 'ControllerSubsites');
Object::add_extension('Group', 'GroupSubsites');
2009-05-04 07:03:44 +02:00
Object::add_extension('Member', 'MemberSubsites');
2010-03-01 22:42:11 +01:00
Object::add_extension('File', 'FileSubsites');
2009-10-05 23:01:01 +02:00
Object::add_extension('ErrorPage', 'ErrorPageSubsite');
2010-03-01 03:59:04 +01:00
if (class_exists('SiteConfig')) Object::add_extension('SiteConfig', 'SiteConfigSubsites');
2010-03-01 22:42:05 +01:00
?>