Page 1 of 1

Joomla 1.6 Breadcrumbs problem (twice)

Posted: 16 May 2011, 10:20
by snayk
Hi everybody,

First of all thank you for your great component.

I use phoca download on my Joomla 1.6 site, and I have a problem with the breadcrumbs.

I have some categories :
Parents
|_ Firsts
|_ Seconds

And a menu which uses the categories in "List of files (category view)"

Here there is a picture which explains explicitly my problem:
http://imageshack.us/photo/my-images/220/sansresj.png/

How could I fix this problem :/ ... It's a big bug in my site.

Thanks for reply.

Re: Joomla 1.6 Breadcrumbs problem (twice)

Posted: 16 May 2011, 17:44
by snayk
I found a solution: I have modified the "views/category/view.html.php" code :

I have only keep the line 256 :

Code: Select all

$pathway->addItem($this->category[0]->title);

So finally I have:

Commented:

Code: Select all

/*if (isset($this->category[0]->parentid)) {
	if ($this->category[0]->parentid == 0) {
	// $pathway->addItem( JText::_('COM_PHOCADOWNLOAD_CATEGORIES'), JRoute::_(PhocaDownloadHelperRoute::getCategoriesRoute()));
	} else if ($this->category[0]->parentid > 0) {
		$pathway->addItem($this->category[0]->parenttitle, JRoute::_(PhocaDownloadHelperRoute::getCategoryRoute($this->category[0]->parentid, $this->category[0]->parentalias)));
	}
}*/
And keep:

Code: Select all

if (isset($this->category[0]->parentid)) {
	$pathway->addItem($this->category[0]->title);
}
Maybe it'll solve some problems.

Cordially

Re: Joomla 1.6 Breadcrumbs problem (twice)

Posted: 17 May 2011, 12:52
by Jan
Hi, thank you for the info, I will take a look at it for the next version.

Jan