Permalink
Browse files

ENHANCEMENT: LeftAndMain breadcrumbs to use MenuTitle

Breadcrumbs in the CMS currently only use title, when MenuTitle is
probably more appropriate (if it is set).
  • Loading branch information...
kinglozzer authored and chillu committed Dec 13, 2012
1 parent 77212c0 commit 806637629040b555e0dfc110a1c53c3031e6f1d0
Showing with 2 additions and 2 deletions.
  1. +2 −2 admin/code/LeftAndMain.php
@@ -645,13 +645,13 @@ public function Breadcrumbs($unlinked = false) {
$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)
)));
}

0 comments on commit 8066376

Please sign in to comment.