Page 3 of 3

Re: Section Showing Twice in Breadcrumbs

Posted: 19 Dec 2014, 16:54
by arn34
I still encounter the same problem with joomla 3.3.6 and phoca download 3.0.6 : Category Subcategory Category Subcategory in breadcrumb.

Here is what I did to stop duplicate pathway in breadcrumb, I modified the file /components/com_phocadownload/views/category/view.html.php :

Code: Select all

// Breadcrumbs TODO (Add the whole tree)
		$pathway 		= $app->getPathway();
		/*if (isset($this->category[0]->parentid)) {
			if ($this->category[0]->parentid == 0) {
				// $pathway->addItem( JText::_('COM_PHOCADOWNLOAD_CATEGORIES'), JRoute::_(PhocaDownloadRoute::getCategoriesRoute()));
			} else if ($this->category[0]->parentid > 0) {
				$curpath = $pathway->getPathwayNames();
				if($this->category[0]->parenttitle != $curpath[count($curpath)-1]){
				 	$pathway->addItem($this->category[0]->parenttitle, JRoute::_(PhocaDownloadRoute::getCategoryRoute($this->category[0]->parentid, $this->category[0]->parentalias)));
				}
			}
		}*/

		if (!empty($this->category[0]->title)) {
			$curpath = $pathway->getPathwayNames();
			if($this->category[0]->title != $curpath[count($curpath)-1]){
				$pathway->addItem($this->category[0]->title);
			}
		}
And this worked perfectly.

Arnaud

Re: Section Showing Twice in Breadcrumbs

Posted: 21 Dec 2014, 20:30
by Jan
Hi, thank you very much for the info, I will take a look at it for the next version of Phoca Download.

Jan