PDA

View Full Version : Need help with a Category Tree Edit


elliott
06-27-08, 07:38 PM
You know how on the category tree the listing for the page you are currently on does NOT show as a link.

But then when you view a product page and you want to go back to it's category page you have to hit the browser back button to return to the category page. You would be able to use the links in the category tree, except that the listing for the category you are on does NOT show as a link.

How do I make it show as a link, so that a visitor can use it instead of the browser back button?

Leanne
06-28-08, 04:11 AM
Click on your store name, and from the tabs on the right side, click Category Tree Template. Find this code:

<mvt:if expr="l.settings:cattree_category:code EQ g.Category_code">
<mvt:if expr="NOT l.settings:cattree_category:image">
<b>&mvt:cattree_category:name;</b>
<mvt:else>
<img src="&mvte:cattree_category:image;" alt="&mvte:cattree_category:name;" border=0>
</mvt:if>
<mvt:else>
<mvt:if expr="l.settings:cattree_category:image">
<a href="&mvt:global:sessionurl;Screen=CTGY&Store_Code=&mvta:store:code;&Category_Code=&mvta:cattree_category:code;"><img src="&mvte:cattree_category:image;" alt="&mvte:cattree_category:name;" border=0></a>
<mvt:else>
<a href="&mvt:global:sessionurl;Screen=CTGY&Store_Code=&mvta:store:code;&Category_Code=&mvta:cattree_category:code;">&mvt:cattree_category:name;</a>
</mvt:if>
</mvt:if>


Change it to:

<mvt:if expr="l.settings:cattree_category:image">
<a href="&mvt:global:sessionurl;Screen=CTGY&Store_Code=&mvta:store:code;&Category_Code=&mvta:cattree_category:code;"><img src="&mvte:cattree_category:image;" alt="&mvte:cattree_category:name;" border=0></a>
<mvt:else>
<a href="&mvt:global:sessionurl;Screen=CTGY&Store_Code=&mvta:store:code;&Category_Code=&mvta:cattree_category:code;">&mvt:cattree_category:name;</a>
</mvt:if>