Joomla 1.6 Breadcrumbs problem (twice)

Phoca Download - download manager
snayk
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 01 Apr 2011, 10:51

Joomla 1.6 Breadcrumbs problem (twice)

Post 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.
snayk
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 01 Apr 2011, 10:51

Re: Joomla 1.6 Breadcrumbs problem (twice)

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Joomla 1.6 Breadcrumbs problem (twice)

Post by Jan »

Hi, thank you for the info, I will take a look at it for the next version.

Jan
If you find Phoca extensions useful, please support the project
Post Reply