Page 1 of 1

No sub-categories on "categories view"

Posted: 13 Jun 2014, 13:05
by Muttley
After update from 3.0.4 to 3.0.5 (Phoca Dowload component) my subcategories in "categories view" are not visible anymore.

(v3.0.4) example before update:
Category 1
[] sub category 1-1 (n)
[] sub category 2-1 (n)

Category 2
[] sub category 1-2 (n)
etc..

(v3.0.5) after update:
Category 1

Category 2


I have 8 main categories with some sub categories for each one of them.
The files to download are uploaded on the sub categories.
Can you explain me, please, what happened?

Best regards.
Mat

Re: No sub-categories on "categories view"

Posted: 13 Jun 2014, 13:39
by Muttley
UPDATING...
sorry this is the real scenario:

(v3.0.5) after update:
Category 1
No Subcategories

Category 2
No Subcategories

But instead I have one or more sub-categories for each main category

Re: No sub-categories on "categories view"

Posted: 14 Jun 2014, 12:41
by mmawji
Hi,

There is a mistype on the code.
On the file /components/com_phocadownload/views/categories/tmpl/default.php line number 23

Replace the code

Code: Select all

		if (!empty($v->subcategories)) {
with the code

Code: Select all

		if (!empty($value->subcategories)) {

Re: No sub-categories on "categories view"

Posted: 14 Jun 2014, 16:29
by Jan
Hi, thank you very much for this info, confirmed, fixed in the same version 3.0.5 (date 14/06/2014) - can be downloaded here:

https://www.phoca.cz/download/category/4 ... -component

Thank you, Jan

Re: No sub-categories on "categories view"

Posted: 16 Jun 2014, 09:23
by Muttley
Solved for me.

Thank you

Re: No sub-categories on "categories view"

Posted: 16 Jun 2014, 21:02
by Jan
Ok