How to get images of subcategories?

More
7 years 6 months ago #67398 by Miken
I need to show an image of the subcategories

In the category settings there is an image field


In the template blog there is such a section of the code
Code:
// a. Optional sub-category image $subcats_html[$i] = "<span class='floattext subcat ".$subcat_cont_class."'>\n"; if ($show_description_image_subcat && $sub->image) { $subcats_html[$i] .= " <span class='catimg'>".$sub->image."</span>\n"; }

But! The image added to the category is not displayed

print_r($sub);

This message contains confidential information


What do you need to turn on to get an image?

Flexicontent 3.1.1 & Joomla 3.7.1
Attachments:

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

More
7 years 6 months ago #67400 by Miken
I will answer my own question. To include it is necessary in global settings of a component

Flexicontent 3.1.1 & Joomla 3.7.1

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

More
7 years 6 months ago #67402 by micker
i your master category you can choose to display subcategory and image .... with prefix and suffix for each subcatecogery you can add class for display

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.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.386 seconds
Save
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