protected function _setBreadcrumb() { $app = JFactory::getApplication(); $pathway = $app->getPathway(); $pathwayArray = array(); if ($this->categoryId) { $pathwayArray = JUDirectoryFrontHelperBreadcrumb::getBreadcrumbCategory($this->categoryId); } else { $pathwayArray[] = JUDirectoryFrontHelperBreadcrumb::getRootPathway(); } $linkFeatured = JRoute::_(JUDirectoryHelperRoute::getFeaturedRoute($this->categoryId, $this->fetchAllSubCat)); $pathwayArray[] = JUDirectoryFrontHelperBreadcrumb::createPathwayItem($this->getName(), $linkFeatured); $pathway->setPathway($pathwayArray); }