Re: Sub-Category images
Here is the entire code that I use on my content(subcategory_listing) tab. You may not need all of it or can re-arrange it, but I just copied the whole thing here for you.
Here is the entire code that I use on my content(subcategory_listing) tab. You may not need all of it or can re-arrange it, but I just copied the whole thing here for you.
Code:
<div id="subcategory-listing">
<mvt:comment>Assign temporary variable for g.Category_Code</mvt:comment>
<mvt:item name="toolkit" param="vassign|Orig_Cat_Code|Category_Code" />
<mvt:foreach iterator="sub_category" array="sub_categories">
<mvt:item name="toolkit" param="catimage|subcatImage|l.all_settings:sub_category:code" />
<mvt:if expr="(pos1 MOD 4) EQ 1">
<div class="product-wrapper first">
<mvt:else>
<div class="product-wrapper">
</mvt:if>
<a href="/category/&mvta:sub_category:code;.html" title="&mvte:sub_category:name;">
<mvt:if expr="subcatImage">
<img src="&mvte:global:subcatImage;" alt="&mvte:sub_category:name;" title="&mvte:sub_category:name;" />
<mvt:else>
<img src="../images/img_no_thumb.jpg" alt="&mvte:sub_category:name;" title="&mvte:sub_category:name;" />
</mvt:if>
</a>
<span class="product-wrapper-name">&mvte:sub_category:name;</span>
<mvt:comment>Fake out the header lookup with the subcategory code</mvt:comment>
<mvt:item name="toolkit" param="vassign|Category_Code|l.all_settings:sub_category:code" />
<mvt:item name="toolkit" param="header|subcathead" />
<mvt:if expr="g.subcathead">
<mvt:item name="toolkit" param="brief|briefdesc|g.subcathead|275|2" />
<div style="text-align: left;">&mvt:global:briefdesc;. .</div>
</mvt:if><br />
<div class="read-more"><a style="text-decoration: none;" href="/category/&mvta:sub_category:code;.html">Get Details>></a></div>
</div>
</mvt:foreach>
<mvt:comment>Reassign the original g.Category_Code</mvt:comment>
<mvt:item name="toolkit" param="vassign|Category_Code|Orig_Cat_Code" />
</div>
Comment