BUGFIX Adjusted StatisticsAdmin to new CMS Menu generation (see #2872)

This commit is contained in:
Ingo Schommer 2008-11-02 22:23:01 +00:00
parent 468a76bb8c
commit b1ac00bcde
2 changed files with 6 additions and 8 deletions

View File

@ -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')
)));
?>

View File

@ -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() {
}