Announcement

Collapse
No announcement yet.

Primary Navigation not acting right

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    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


    Code:
    <mvt:if expr="l.settings:navigationitem:link_dest CIN 'CLST|CTGY|PLST'">
    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="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>





    Leslie Kirk
    Miva Certified Developer
    Miva Merchant Specialist since 1997
    Previously of Webs Your Way
    (aka Leslie Nord leslienord)

    Email me: [email protected]
    www.lesliekirk.com

    Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr

    #2
    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.
    Matt Zimmermann

    Miva Web Developer
    Alchemy Web Development
    https://www.alchemywebdev.com
    Site Development - Maintenance - Consultation

    Miva Certified Developer
    Miva Professional Developer

    https://www.dev4web.net | Twitter

    Comment


      #3
      Originally posted by Matt Zimmermann View Post
      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.
      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.

      Leslie Kirk
      Miva Certified Developer
      Miva Merchant Specialist since 1997
      Previously of Webs Your Way
      (aka Leslie Nord leslienord)

      Email me: [email protected]
      www.lesliekirk.com

      Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr

      Comment

      Working...
      X