Is there already a dozen posts about this subject? yep. Ive searched them out and read them all. Do any of them have some sort of descriptive resolution? not really. They seem to either be unanswered, told to use CSS (Which was a terrible idea), resolved with an "I figured it out, never mind" post or the most logical, ""Toolkit does that"
Problem is, Ive looked at my code vs. the toolkit code for an hour and I can seem to sort it all out. Its been a chore for me to figure out how to understand the mvt statements, but breaking them up with toolkit code still confuses me even more.
here is my Cat Tree Code:
unfortunately all can find in the toolkit examples is how to expand all category levels.
What am I missing?
Problem is, Ive looked at my code vs. the toolkit code for an hour and I can seem to sort it all out. Its been a chore for me to figure out how to understand the mvt statements, but breaking them up with toolkit code still confuses me even more.
here is my Cat Tree Code:
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> <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; </mvt:if> </a> </div> </mvt:foreach> </div>
What am I missing?
Comment