I don't understand how to do that. I tried and failed. I found the solution below, in an old thread. It works, but it puts the same image by all the subcategory names. It looks really strange because of all the repeated images. Does anyone have any ideas how to adjust anything to make it show the image only by the top category name?
Thank you, Karole
includes/templates/MY_TEMPLATE/sideboxes/tpl_categories.php
(Uses Template Override System. You may need to open the same file from the template_default folder and resave in your custom template folder.)
Find (near line 34):[FONT=Courier New]$content .= '<a class="' . $new_style . '" href="' . zen_href_link(FILENAME_DEFAULT, $box_categories_array[$i]['path']) . '">';
[/FONT]
After that, add:
[FONT=Courier New]// for adding image beside category name[/FONT]
[FONT=Courier New]// categories_image [/FONT]
[FONT=Courier New]$categorySelect = str_replace('cPath=','',$box_categories_array[$i]['path']);[/FONT]
[FONT=Courier New]$categories_image = zen_get_categories_image($categorySelect);[/FONT]
[FONT=Courier New]$myCategoryImage = zen_image(DIR_WS_IMAGES . $categories_image, '', '50', '75');[/FONT]
[FONT=Courier New]// categories_image[/FONT]
[FONT=Courier New]$content .= $myCategoryImage;[/FONT]
[FONT=Courier New]// end adding image code
[/FONT]
**Notice the '50'. You can replace this with your number of choice to set the width of the sidebox category image. And/Or put a number in place of the '75' to set the height of the sidebox category image. Or set either to '' and the images orginal sizes will be used. You can also set one to a number and the other to '' if you just need to set one dimension and you want the image dimensions kept in tact.
Bookmarks