/** * manipulates the parts the pages breadcrumbs if a product detail view is * requested. * * @param int $maxDepth maximum depth level of shown pages in breadcrumbs * @param bool $unlinked true, if the breadcrumbs should be displayed without links * @param string $stopAtPageType name of pagetype to stop at * @param bool $showHidden true, if hidden pages should be displayed in breadcrumbs * @param bool $showProductTitle true, if product title should be displayed in breadcrumbs * * @return ArrayList * * @author Sebastian Diel <*****@*****.**>, Patrick Schneider <*****@*****.**> * @since 09.10.2012 */ public function BreadcrumbParts($maxDepth = 20, $unlinked = false, $stopAtPageType = false, $showHidden = false, $showProductTitle = false) { $parts = parent::BreadcrumbParts($maxDepth, $unlinked, $stopAtPageType, $showHidden); if ($this->isProductDetailView()) { if ($showProductTitle) { $title = new Text(); $title->setValue($this->getDetailViewProduct()->Title); $parts->push(new ArrayData(array('MenuTitle' => $title, 'Title' => $title, 'Link' => ''))); } } $this->extend('updateBreadcrumbParts', $parts); return $parts; }