How to add images to sub-categories in list?

More
14 years 10 months ago - 14 years 10 months ago #2861 by jensende
Hi.

I am new to this but could someone please help me with the following:

I have a main category called Activities and a subcategory under that called Luxury but it is only displayed as a text link, I want a picture similar to the main category to be shown instead ( I have attached a picture to the subcategory but doesn't display )

Take a look at
www.experience-sa.com/flexi.html

looking forward to a reply.

Kind reagrds
Jens
Last edit: 14 years 10 months ago by kenmcd. Reason: Please use descriptive thread titles.

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

More
14 years 10 months ago #2862 by yopyop001
Hi,

In your template (com_flexicontent/templates/your_template), you have a file named category_subcategories.php

Here you can customize the way to display subcategories.

To get the image of each subcategories you can use :
Code:
<?php echo JHTML::_('image.site', $sub->image, 'images/stories/', NULL, NULL, $sub->title); ?>

in the boucle :
Code:
foreach ($this->categories as $sub) : ... endforeach;

I hope it will help you

Best regards.

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

More
14 years 9 months ago #2981 by Rooney
Does anybody know how to also add the item table in this view...?

Thanks
Rooney

Joomla! 3.9.24 and FC 3.3.9

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.492 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