Wrong subcategory image in category-view

More
12 years 8 months ago #36836 by mcmurdok
Hello,
if I set up a category-view with subcategories and subcategory images, all subcategories get the image of their parent category (the selected category of this category-view).
In the params object of the subcategory is the right path to the image but under $sub->image and $sub->image_src I get only the picture of the parent category.

Regards

Please Log in or Create an account to join the conversation.

More
12 years 8 months ago #36841 by ggppdk
Hello,
version that you have? v2.0.2?

Do you have an older custom template?
i mean: did you temporarily test with a built-in template?


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!

Please Log in or Create an account to join the conversation.

More
12 years 8 months ago #36846 by mcmurdok
Hello,
I'm using J2.5.11 and FC 2.0.2 r1680. I tested it with all built-in templates and it's always the same problem.

Please Log in or Create an account to join the conversation.

More
12 years 8 months ago #36862 by ggppdk
Hello,
thanks for report

to apply a fix now:
edit file
components/com_flexicontent/views/category/view.html.php
find line (about 539):
Code:
$subcat->image = FLEXI_J16GE ? $params->get('image') : $subcat->image;
and change to:
Code:
$subcat->image = FLEXI_J16GE ? $subcat->params->get('image') : $subcat->image;


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!

Please Log in or Create an account to join the conversation.

More
12 years 8 months ago #36869 by mcmurdok
Thank you,
this seems to work

Regards

Please Log in or Create an account to join the conversation.

More
12 years 8 months ago #36874 by micker
can you update your post to solved ?

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

Please Log in or Create an account to join the conversation.

More
12 years 6 months ago #38265 by brandonking
I can't display sub-category's image.
I have created Category menu item and selected one parent category.
Override Configuration : No, use defaults

I only want to display sub-categories with its image saved in param.

There are all sub-category's names but without their images.

In category_subcategories.php, $sub->image is empty.
How can I check whether each variable has value in view.html.php?
Like, print or echo are not working...

FC version: r1693

Please Log in or Create an account to join the conversation.

More
12 years 6 months ago #38283 by ggppdk
Hello,

i am not sure that i understand you
you speak of file:
.../tmpl_common/category_subcategories.php
right ?

-- you have assigned an image and enable the showing of subcategory image in category configuration,
but the image is not shown ?
(please note the setting for sub-category images are different than setting for category image, they are further down the in the parameter list)


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!

Please Log in or Create an account to join the conversation.

More
12 years 6 months ago #38291 by brandonking
Exactly, I am talking about /tmpl_common/category_subcategories.php
I think category_subcategories.php has no problem.

-- you have assigned an image and enable the showing of subcategory image in category configuration,
but the image is not shown ?
(please note the setting for sub-category images are different than setting for category image, they are further down the in the parameter list)

Yes, I know and I have tried so many times by giving different value. but I've never got Images displayed.

Image folder permission set to 755.
Tested with Categories menu item, no images displayed either.

There is a problem in views/category/view.html.php.
Coz $sub->image is always empty.

Please Log in or Create an account to join the conversation.

More
12 years 6 months ago #38292 by ggppdk
Hello,

tested with both subcategory image in parameter and with subcategory image in image description

maybe you have set the "image source parameter" wrongly

e.g. publish the category "Test CAT A" in "About" category to see that it is working


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline
Save