From 806637629040b555e0dfc110a1c53c3031e6f1d0 Mon Sep 17 00:00:00 2001 From: Loz Calver Date: Thu, 13 Dec 2012 14:25:56 +0000 Subject: [PATCH] ENHANCEMENT: LeftAndMain breadcrumbs to use MenuTitle Breadcrumbs in the CMS currently only use title, when MenuTitle is probably more appropriate (if it is set). --- admin/code/LeftAndMain.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/admin/code/LeftAndMain.php b/admin/code/LeftAndMain.php index 82fc5a56b..bcaf4f3e8 100644 --- a/admin/code/LeftAndMain.php +++ b/admin/code/LeftAndMain.php @@ -645,13 +645,13 @@ class LeftAndMain extends Controller implements PermissionProvider { $ancestors->push($record); foreach($ancestors as $ancestor) { $items->push(new ArrayData(array( - 'Title' => $ancestor->Title, + 'Title' => ($ancestor->MenuTitle) ? $ancestor->MenuTitle : $ancestor->Title, 'Link' => ($unlinked) ? false : Controller::join_links($this->Link('show'), $ancestor->ID) ))); } } else { $items->push(new ArrayData(array( - 'Title' => $record->Title, + 'Title' => ($record->MenuTitle) ? $record->MenuTitle : $record->Title, 'Link' => ($unlinked) ? false : Controller::join_links($this->Link('show'), $record->ID) ))); }