Orange22
10-10-06, 09:01 PM
I would like to generate a category tree based on the category title images, instead of simply using text. It is a bit confusing since the category_tree is a black box of sorts and I can't just edit its code. Here's where I'm starting:
<mvt:foreach iterator="code" array="categories:codes">
<!-- displays category title image if possible, or link if not -->
<mvt:if expr="NOT ISNULL l.settings:category_title:image">
<a href=""><img src="&mvte:category_title:image;" alt="&mvte:category:name;" border="0"></a>
<mvt:else>
<mvt:item name="fonts" param="hdr_font">
<a href=""><b>&mvte:category:name;</b></a>
</mvt:item>
</mvt:if>
<br>
</mvt:foreach>
Any ideas why this isn't working? Also, how do I build the link for each category's page? I have left room for them, but they remain empty in the above example. Are there system variables for the store address, Category Code, etc? Does anyone have the code forthe category_tree component?
Finally, are there any websites or pages with more explicit coding examples for MIVA? The documentation is good, but lacks a lot of examples so I can wrap my head around syntax, etc. Thanks!
-Brandon Lynne
<mvt:foreach iterator="code" array="categories:codes">
<!-- displays category title image if possible, or link if not -->
<mvt:if expr="NOT ISNULL l.settings:category_title:image">
<a href=""><img src="&mvte:category_title:image;" alt="&mvte:category:name;" border="0"></a>
<mvt:else>
<mvt:item name="fonts" param="hdr_font">
<a href=""><b>&mvte:category:name;</b></a>
</mvt:item>
</mvt:if>
<br>
</mvt:foreach>
Any ideas why this isn't working? Also, how do I build the link for each category's page? I have left room for them, but they remain empty in the above example. Are there system variables for the store address, Category Code, etc? Does anyone have the code forthe category_tree component?
Finally, are there any websites or pages with more explicit coding examples for MIVA? The documentation is good, but lacks a lot of examples so I can wrap my head around syntax, etc. Thanks!
-Brandon Lynne