Page 1 of 1

Category image selection don't work for Categories view

Posted: 30 Nov 2016, 15:10
by Zotius
When I want to set an image from a category which will represent the category on Categories view, the Categories view don't display the selected image, only the text content of "Alt" field can view on frontend.
Similarly problematic also the removal of the selected image from the field.

Please the Phoca Team, correct these errors. This would be a nice feature if it can work :)

Re: Category image selection don't work for Categories view

Posted: 03 Dec 2016, 12:48
by Zotius

Re: Category image selection don't work for Categories view

Posted: 05 Dec 2016, 03:10
by Jan
Hi, which version of Phoca Gallery do you use?

If you run latest version 4.3.3, try to edit this file:

components\com_phocagallery\views\categories\view.html.php, line cca 361.

FROM:

Code: Select all

$this->categories[$key]->filename = $selectedImg->filename;
TO:

Code: Select all

$this->categories[$key]->filename = $selectedImg->filename;
$this->categories[$key]->linkthumbnailpath	= $fileThumbnail->rel;
And let me know if this solves the problem.

Thank you, Jan

Re: Category image selection don't work for Categories view

Posted: 17 Apr 2017, 21:34
by dannette
I'm going to jump in here and say it helped my problem. I had the same problem when trying to set up an image from a subcategory for the main category that had no images in it. Thanks.

Re: Category image selection don't work for Categories view

Posted: 20 Apr 2017, 15:44
by Jan
Ok, thank you for the info.

Jan