PDA

View Full Version : CategoryTree as Images instead of text


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

Vic - WolfPaw Computers
10-10-06, 10:00 PM
Are you simply trying to use images for your cat tree instead of text?

Use the Category Tree tab under Edit Category to upload an image to use instead of text.

There is no access to the category_tree component. You would have to use a third party module or create your own component to edit it.

Orange22
10-10-06, 11:51 PM
I already have added images under thwe category titles. They show up in the category pages above the products listed therein. The tree is not listeing them. Is this an option? The Category_tree component has no options that I can find, but if there is a way to specify images instead of text, please let me know. Thanks!

Vic - WolfPaw Computers
10-10-06, 11:57 PM
Please re-read my post again.

I gave you instructions how to... not the category title, category tree tab.

Orange22
10-11-06, 04:24 AM
duh! Thanks, that works like a charm. Also, any way to undelete a page you've accidently removed? Worked all day and for some reason I check the box and hit update. Ugh.

Vic - WolfPaw Computers
10-11-06, 04:38 AM
Are you using MySQL or mivasql for your backend?