An easy way to exclude specific categories from appearing in the category tree.
Please.
Thank you.
Please.
Thank you.
<mvt:foreach array="cattree_categories" iterator="cattree_category"> <mvt:if expr="l.settings:cattree_category:customfield_values:customfields:exclude_cat_cattree NE '1'"> <mvt:if expr="l.settings:cattree_category:level EQ 1"> <mvt:if expr="NOT ISNULL l.settings:category:id AND l.settings:category:id EQ l.settings:cattree_category:id"> <li class="level-&mvte:cattree_category:level;"><a class="bold current-item" href="&mvte:cattree_category:link;">&mvt:cattree_category:name;</a></li> <mvt:else> <li class="level-&mvte:cattree_category:level;"><a href="&mvte:cattree_category:link;">&mvt:cattree_c ategory:name;</a></li> </mvt:if> <mvt:elseif expr="l.settings:cattree_category:level EQ 2"> <mvt:if expr="NOT ISNULL l.settings:category:id AND l.settings:category:id EQ l.settings:cattree_category:id"> <li class="level-&mvte:cattree_category:level;"><a class="bold current-item" href="&mvte:cattree_category:link;">&mvt:cattree_category:name;</a></li> <mvt:else> <li class="level-&mvte:cattree_category:level;"><a href="&mvte:cattree_category:link;">&mvt:cattree_c ategory:name;</a></li> </mvt:if> <mvt:else> <mvt:if expr="NOT ISNULL l.settings:category:id AND l.settings:category:id EQ l.settings:cattree_category:id"> <li class="level-&mvte:cattree_category:level;"><a class="bold current-item" href="&mvte:cattree_category:link;">&mvt:cattree_category:name;</a></li> <mvt:else> <li class="level-&mvte:cattree_category:level;"><a href="&mvte:cattree_category:link;">&mvt:cattree_category:name;</a></li> </mvt:if> </mvt:if> </mvt:if> </mvt:foreach>
Comment