Announcement

Collapse
No announcement yet.

Navigation: All Categories navigation None is linking

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

    Navigation: All Categories navigation None is linking

    I have a site that has the Navigation Sets > Navigation: All Categories default navigation_all-categories template code. For some reason, when the Link: None is assigned to one of the Navigation Items, it links to /Merchant2/

    It looks like it's creating this
    Code:
    <a href="" target="_self" class="nav-item-5" data-link-type="_self">Category Name</a>
    instead of no link at all. How do I fix this?

    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,

    Try changing it back to being a link, in the admin, delete any link reference, and then switching it back to not being a link.
    Matt Zimmermann
    Front-End Development Director / Miva, Inc.

    Comment


      #3
      Originally posted by Matt Zimmermann View Post
      Hi Leslie,

      Try changing it back to being a link, in the admin, delete any link reference, and then switching it back to not being a link.
      That didn't help. I even tried creating another one from scratch, still the same results.
      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


        #4
        Hi Leslie,

        In your navigation_all-categories navigation set, try replacing:
        Code:
                                            <a href="&mvte:navigationitem_level2:link_href;" target="&mvt:navigationitem_level2:link_targ;" class="nav-item-5" data-link-type="&mvt:navigationitem_level2:link_targ;">&mvt:navigationitem_level2:name;</a>
        with
        Code:
                                            <mvt:if expr="l.settings:navigationitem:link_type EQ 'N'">
                                                <span class="nav-item-5">&mvt:navigationitem_level2:name;</span>
                                            <mvt:else>
                                                <a href="&mvte:navigationitem_level2:link_href;" target="&mvt:navigationitem_level2:link_targ;" class="nav-item-5" data-link-type="&mvt:navigationitem_level2:link_targ;">&mvt:navigationitem_level2:name;</a>
                                            </mvt:if>
        Matt Zimmermann
        Front-End Development Director / Miva, Inc.

        Comment


          #5
          That didn't help. Should I open a ticket?
          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


            #6
            Hi Leslie,

            I forgot that you were dealing with the second level of navigation. Try changing the conditional to this:
            Code:
            <mvt:if expr="l.settings:navigationitem_level2:link_type EQ 'N'">
                <span class="nav-item-5">&mvt:navigationitem_level2:name;</span>
            <mvt:else>
                <a href="&mvte:navigationitem_level2:link_href;" target="&mvt:navigationitem_level2:link_targ;" class="nav-item-5" data-link-type="&mvt:navigationitem_level2:link_targ;">&mvt:navigationitem_level2:name;</a>
            </mvt:if>
            Matt Zimmermann
            Front-End Development Director / Miva, Inc.

            Comment

            Working...
            X