diff --git a/_config.php b/_config.php index a0212a4..e9a0c55 100644 --- a/_config.php +++ b/_config.php @@ -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') -))); - ?> diff --git a/code/SubsiteAdmin.php b/code/SubsiteAdmin.php index c32a9f7..d9a24f7 100644 --- a/code/SubsiteAdmin.php +++ b/code/SubsiteAdmin.php @@ -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() { }