MINOR Fixed "Pages" breadcrumbs not to include root node, since its already in the tree panel

This commit is contained in:
Ingo Schommer 2012-03-12 11:52:39 +01:00
parent 112a3f5f81
commit 44a4e8a840
3 changed files with 21 additions and 0 deletions

View File

@ -9,4 +9,11 @@ class CMSPageEditController extends CMSMain {
static $url_rule = '/$Action/$ID/$OtherID'; static $url_rule = '/$Action/$ID/$OtherID';
static $url_priority = 41; static $url_priority = 41;
static $required_permission_codes = 'CMS_ACCESS_CMSMain'; static $required_permission_codes = 'CMS_ACCESS_CMSMain';
public function Breadcrumbs($unlinked = false) {
$crumbs = parent::Breadcrumbs($unlinked);
// Remove "root" element, as its already shown in the tree panel
$crumbs->shift();
return $crumbs;
}
} }

View File

@ -439,4 +439,11 @@ class CMSPageHistoryController extends CMSMain {
return $form; return $form;
} }
} }
public function Breadcrumbs($unlinked = false) {
$crumbs = parent::Breadcrumbs($unlinked);
// Remove "root" element, as its already shown in the tree panel
$crumbs->shift();
return $crumbs;
}
} }

View File

@ -15,4 +15,11 @@ class CMSPageSettingsController extends CMSMain {
return parent::getEditForm($record, ($record) ? $record->getSettingsFields() : null); return parent::getEditForm($record, ($record) ? $record->getSettingsFields() : null);
} }
public function Breadcrumbs($unlinked = false) {
$crumbs = parent::Breadcrumbs($unlinked);
// Remove "root" element, as its already shown in the tree panel
$crumbs->shift();
return $crumbs;
}
} }