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 :)
Category image selection don't work for Categories view
-
- Phoca Member
- Posts: 16
- Joined: 08 Feb 2012, 17:46
- Location: Mosonmagyarovar, Hungary
- Contact:
-
- Phoca Member
- Posts: 16
- Joined: 08 Feb 2012, 17:46
- Location: Mosonmagyarovar, Hungary
- Contact:
- Jan
- Phoca Hero
- Posts: 47865
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Category image selection don't work for Categories view
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:
TO:
And let me know if this solves the problem.
Thank you, Jan
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;
Code: Select all
$this->categories[$key]->filename = $selectedImg->filename;
$this->categories[$key]->linkthumbnailpath = $fileThumbnail->rel;
Thank you, Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 5
- Joined: 17 Apr 2017, 21:28
Re: Category image selection don't work for Categories view
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.
- Jan
- Phoca Hero
- Posts: 47865
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Category image selection don't work for Categories view
Ok, thank you for the info.
Jan
Jan
If you find Phoca extensions useful, please support the project