diff --git a/code/controllers/CMSMain.php b/code/controllers/CMSMain.php index 50e9da9a..fff249c8 100644 --- a/code/controllers/CMSMain.php +++ b/code/controllers/CMSMain.php @@ -222,6 +222,20 @@ class CMSMain extends LeftAndMain implements CurrentPageIdentifier, PermissionPr return $this->getsubtree($this->request); } + /** + * @return ArrayList + */ + public function Breadcrumbs($unlinked = false) { + $items = parent::Breadcrumbs($unlinked); + + // The root element should point to the pages tree view, + // rather than the actual controller (which would just show an empty edit form) + $items[0]->Title = self::menu_title_for_class('CMSPagesController'); + $items[0]->Link = singleton('CMSPagesController')->Link(); + + return $items; + } + /** * Create serialized JSON string with site tree hints data to be injected into * 'data-hints' attribute of root node of jsTree. diff --git a/templates/Includes/AssetAdmin_Content.ss b/templates/Includes/AssetAdmin_Content.ss index a6c9d0b1..c647b543 100644 --- a/templates/Includes/AssetAdmin_Content.ss +++ b/templates/Includes/AssetAdmin_Content.ss @@ -2,7 +2,9 @@