Hello, I posted once before about skipping a category (please view my previous thread for more information if you want every step I made creating the custom field etc. here http://extranet.mivamerchant.com/for...561#post408561) in the category tree and I was helped successfully before and I'm hoping all the other mivites can help me with this mystery.
I'm working on a mm5 store and I'm trying to figure out how keep a category active, but NOT have the category name appear in the category tree (in the Array). I'm using flyout menus with the toolkit module; this was working before I implemented the flyout menus using the following code originally:
I used the same expression/conditional when I started using the flyout menus, here's what I used below:
I also changed this line <mvt:if expr="ISNULL l.settings:cattree_category:customfield_values:cus tomfields:skip_category">
to this following line and it didn't work unfortunatley:
<mvt:if expr="ISNULL l.settings:parent_category:customfield_values:cust omfields:skip_category">
Please let me know if you have any suggestions . . . any help would be much appreciated : )
Thanks!
ThePen
I'm working on a mm5 store and I'm trying to figure out how keep a category active, but NOT have the category name appear in the category tree (in the Array). I'm using flyout menus with the toolkit module; this was working before I implemented the flyout menus using the following code originally:
Code:
<div id="category-tree"> <mvt:foreach array="cattree_categories" iterator="cattree_category"> <mvt:if expr="NOT ISNULL l.settings:category:id AND l.settings:category:id EQ l.settings:cattree_category:id"> <div class="level-&mvte:cattree_category:level; active"> <mvt:elseif expr="NOT ISNULL g.Category_Code AND ISNULL l.settings:category:id AND l.settings:cattree_category:code EQ g.Category_Code"> <div class="level-&mvte:cattree_category:level; active"> <mvt:else> <div class="level-&mvte:cattree_category:level;"> </mvt:if> <mvt:if expr="ISNULL l.settings:cattree_category:customfield_values:customfields:skip_category"> <a href="&mvte:cattree_category:link;"> <mvt:if expr="l.settings:cattree_category:image"> <img src="&mvte:cattree_category:image;" alt="&mvte:cattree_category:name;" /> <mvt:else> >> &mvte:cattree_category:name; </a> </mvt:if> </mvt:if> </div> </mvt:foreach> </div>
Code:
<div id="category-tree"> <mvt:item name="toolkit" param="parentcat|pccount" /> <ul class="dropdown flyout"> <mvt:foreach iterator="parent_category" array="parent_categories"> <mvt:if expr="ISNULL l.settings:cattree_category:customfield_values:customfields:skip_category"> <li><a href="/category/&mvte:parent_category:code;.html" title="&mvte:parent_category:name;">>>&mvte:parent_category:name;</a> <mvt:item name="toolkit" param="subcat|ccount|l.all_settings:parent_category:code" /> <mvt:if expr="ccount GT 0"> <ul class="sub-menu"> <mvt:foreach iterator="sub_category" array="sub_categories"> <li><a href="/category/&mvte:sub_category:code;.html" title="&mvte:sub_category:name;">>>&mvte:sub_category:name;</a> <mvt:item name="toolkit" param="subcat2|ccount2|l.all_settings:sub_category:code" /> <mvt:if expr="ccount2 GT 0"> <ul> <mvt:foreach iterator="sub_category2" array="sub_categories2"> <li><a href="/category/&mvte:sub_category2:code;.html" title="&mvte:sub_category2:name;">>>&mvte:sub_category2:name;</a></li> </mvt:foreach> </ul> </mvt:if> </li> </mvt:foreach> </ul> </mvt:if> </li> </mvt:if> </mvt:foreach> </ul> </div>
to this following line and it didn't work unfortunatley:
<mvt:if expr="ISNULL l.settings:parent_category:customfield_values:cust omfields:skip_category">
Please let me know if you have any suggestions . . . any help would be much appreciated : )
Thanks!
ThePen