Category image selection don't work for Categories view

Phoca Gallery - image gallery extension
Zotius
Phoca Member
Phoca Member
Posts: 16
Joined: 08 Feb 2012, 17:46
Location: Mosonmagyarovar, Hungary
Contact:

Category image selection don't work for Categories view

Post 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 :)
Zotius
Phoca Member
Phoca Member
Posts: 16
Joined: 08 Feb 2012, 17:46
Location: Mosonmagyarovar, Hungary
Contact:

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

Post by Zotius »

User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47865
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

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

Post 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
If you find Phoca extensions useful, please support the project
dannette
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 17 Apr 2017, 21:28

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

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

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

Post by Jan »

Ok, thank you for the info.

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