mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
Consistent naming for root breadcrumb on page controllers (fixes #8057)
This commit is contained in:
parent
3512ee82f4
commit
027a41aec7
@ -11,4 +11,10 @@ class CMSPageEditController extends CMSMain {
|
||||
static $required_permission_codes = 'CMS_ACCESS_CMSMain';
|
||||
static $session_namespace = 'CMSMain';
|
||||
|
||||
public function Breadcrumbs($unlinked = false) {
|
||||
$crumbs = parent::Breadcrumbs($unlinked);
|
||||
$crumbs[0]->Title = _t('CMSPagesController.MENUTITLE');
|
||||
return $crumbs;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -402,4 +402,10 @@ class CMSPageHistoryController extends CMSMain {
|
||||
}
|
||||
}
|
||||
|
||||
public function Breadcrumbs($unlinked = false) {
|
||||
$crumbs = parent::Breadcrumbs($unlinked);
|
||||
$crumbs[0]->Title = _t('CMSPagesController.MENUTITLE');
|
||||
return $crumbs;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -17,4 +17,10 @@ class CMSPageSettingsController extends CMSMain {
|
||||
return parent::getEditForm($record, ($record) ? $record->getSettingsFields() : null);
|
||||
}
|
||||
|
||||
public function Breadcrumbs($unlinked = false) {
|
||||
$crumbs = parent::Breadcrumbs($unlinked);
|
||||
$crumbs[0]->Title = _t('CMSPagesController.MENUTITLE');
|
||||
return $crumbs;
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user