Example #1
0
 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);
 }
Example #2
0
 protected function _setBreadcrumb()
 {
     $categoryId = JUDirectoryFrontHelperCategory::getMainCategoryId($this->item->id);
     $app = JFactory::getApplication();
     $pathway = $app->getPathway();
     $pathwayArray = array();
     if ($categoryId) {
         $pathwayArray = JUDirectoryFrontHelperBreadcrumb::getBreadcrumbCategory($categoryId);
     } else {
         $pathwayArray[] = JUDirectoryFrontHelperBreadcrumb::getRootPathway();
     }
     $linkListing = JRoute::_(JUDirectoryHelperRoute::getListingRoute($this->item->id));
     $pathwayArray[] = JUDirectoryFrontHelperBreadcrumb::createPathwayItem($this->item->title, $linkListing);
     if ($this->_layout == 'print') {
         $pathwayArray[] = JUDirectoryFrontHelperBreadcrumb::createPathwayItem('PRINT');
         $document = JFactory::getDocument();
         $document->setMetaData('robots', 'noindex, nofollow');
     }
     $pathway->setPathway($pathwayArray);
 }
Example #3
0
 protected function _setBreadcrumb()
 {
     $app = JFactory::getApplication();
     $pathway = $app->getPathway();
     $pathwayArray = array();
     if ($this->category->id) {
         $pathwayArray = JUDirectoryFrontHelperBreadcrumb::getBreadcrumbCategory($this->category->id);
     } else {
         $pathwayArray[] = JUDirectoryFrontHelperBreadcrumb::getRootPathway();
     }
     $pathway->setPathway($pathwayArray);
 }