mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 09:05:55 +00:00
BUGFIX Adjusted StatisticsAdmin to new CMS Menu generation (see #2872)
This commit is contained in:
parent
468a76bb8c
commit
b1ac00bcde
@ -13,12 +13,4 @@ Object::add_extension('LeftAndMain', 'LeftAndMainSubsites');
|
||||
Object::add_extension('LeftAndMain', 'ControllerSubsites');
|
||||
Object::add_extension('Group', 'GroupSubsites');
|
||||
Object::add_extension('File', 'FileSubsites');
|
||||
|
||||
Director::addRules(100, array(
|
||||
'admin/subsites/$Action/$ID/$OtherID' => 'SubsiteAdmin',
|
||||
));
|
||||
Object::addStaticVars( 'LeftAndMain', array( 'extra_menu_items' => array(
|
||||
'Sub-sites' => array("intranets", "admin/subsites/", 'SubsiteAdmin')
|
||||
)));
|
||||
|
||||
?>
|
||||
|
@ -5,6 +5,12 @@ class SubsiteAdmin extends GenericDataAdmin {
|
||||
static $subitem_class = "Subsite";
|
||||
static $data_type = 'Subsite';
|
||||
|
||||
static $url_segment = 'subsites';
|
||||
|
||||
static $url_rule = '/$Action/$ID/$OtherID';
|
||||
|
||||
static $menu_title = 'Subsites';
|
||||
|
||||
function performSearch() {
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user