![]() |
Cat. Icon as Background Instead of Image
Howdy!
Is is possible to cut some code out of the subcategories.tpl and put it into the category description in admin? Reason being I would like to use large (520x320px) images as root category icons but don't want to use up screen real-estate and thought I'd display the category icon as a background image for the subcategory listing and number of products within those subcageories. Here is the code I'm assuming needs changing, along with some {if} statements. I run into problems when I try to reference the call to the cat_icon URL in the background image URL. Code:
<TD valign="top" rowspan="{count value=$subcategories print="Y"}">[img]{if $current_category.icon_url}{$current_category.icon_url}{else}{$xcart_web_dir}/icon.php?categoryid={$cat}{/if}[/img]</TD> If all else fails I could always insert individual statements for each category, there aren't that many, and upload the icons to the skin1/images folder. All help gratefully received. |
I think i can be done. When in the admin section , in the text box where you add the description of the category.
include html already formated the way you want it to look. This html can be a cell with the background picture and then your description on top. done. let me know if it worked . |
All times are GMT -8. The time now is 06:11 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.