If I understand how the cmp_primary_navigation is coded, any navigation link that is a category "should" appear in the upper navigation
I created a new Navigation Item that is a category, but it was placed in the lower navigation. Or do I completely not understand how this code is supposed to work?
Code:
<mvt:if expr="l.settings:navigationitem:link_dest CIN 'CLST|CTGY|PLST'">
Code:
<mvt:if expr="NOT ISNULL l.settings:readytheme:navigationitems"> <mvt:foreach iterator="navigationitem" array="readytheme:navigationitems"> <mvt:if expr="l.settings:navigationitem:link_dest CIN 'CLST|CTGY|PLST'"> <li class="color--white"> <mvt:if expr="NOT ISNULL l.settings:navigationitem:items"> <input id="l-&mvt:navigationitem:id;-toggle" data-toggle type="checkbox"> <label for="l-&mvt:navigationitem:id;-toggle">&mvt:navigationitem:name;<span class="icon--chevron-down"></span></label> <ul> <mvt:foreach iterator="navigationitem_level2" array="navigationitem:items"> <li class="color--white">&mvt:navigationitem_level2:link;</li> </mvt:foreach> </ul> <mvt:else> &mvt:navigationitem:link; </mvt:if> </li> </mvt:if> </mvt:foreach> <li><hr class="border--secondary"></li> <mvt:foreach iterator="navigationitem" array="readytheme:navigationitems"> <mvt:if expr="NOT (l.settings:navigationitem:link_dest CIN 'CLST|CTGY|PLST')"> <li class="color--secondary"> <mvt:if expr="NOT ISNULL l.settings:navigationitem:items"> <input id="l-&mvt:navigationitem:id;-toggle" data-toggle type="checkbox"> <label for="l-&mvt:navigationitem:id;-toggle">&mvt:navigationitem:name;<span class="icon--chevron-down"></span></label> <ul> <mvt:foreach iterator="navigationitem_level2" array="navigationitem:items"> <li class="color--secondary">&mvt:navigationitem_level2:link;</li> </mvt:foreach> </ul> <mvt:else> &mvt:navigationitem:link; </mvt:if> </li> </mvt:if> </mvt:foreach> </mvt:if>
Comment