Originally posted by Matt Zimmermann
View Post
Announcement
Collapse
No announcement yet.
Primary Navigation not acting right
Collapse
X
-
Based on what I have, that might be it, the link that opens up a drop-down list is linked to the Page PLST. It doesn't actually go to the PLST page, just triggers the chevron to open. I change the one linked to a category and now it works the way I need it to.
-
Hi Leslie,
If I remember correctly, the upper navigation is designed to be triggered by the link being to the category page, the all categories page, or the product list page. Then, you would place your categories under that which would show in the drop-down. Any other link you add to the navigation, at the top level, would be placed below.
Leave a comment:
-
Primary Navigation not acting right
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>
Tags: None
Leave a comment: