Announcement

Collapse
No announcement yet.

Playing with the ReadyTheme nav bar

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

    Playing with the ReadyTheme nav bar

    I'm playing around trying to add an icon to a specific category. I'd like to add a little sale tag image next to the sale category. It's to display all the time, just for that link and not for all the links on the sale category. LOL, for a good laugh, here's what I did

    Code:
    <li class="level-1">
                <mvt:if expr="l.settings:category:code EQ 'sale'">
                 <span><a href="/&mvt:category:code;.html"><img src="graphics/00000001/saletag.jpg">&nbsp;$ALE</a></span>
                <mvt:else>
                    <span>&mvt:navigationitem:link;</span>
                    </mvt:if>
    Of course, the special icon / link only shows on the sale category and it shows as every level-1 link in the nav bar. So obviously, I can't use the category code as the conditional
    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
    why don't you check for &mvt:navigationitem:link; content?

    Code:
     
      <mvt:if expr="l.settings:category:code EQ 'sale' AND l.settings:navigationitem:link EQ '..........' ">
    ?

    Comment


      #3
      Hi Leslie,

      When working with navigation sets, you would need to check the destination and, for good measure, they type:
      Code:
      <mvt:if expr="l.settings:navigationitem:link_type EQ 'C' AND l.settings:navigationitem:link_dest EQ 'sale'">
      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


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

        When working with navigation sets, you would need to check the destination and, for good measure, they type:
        Code:
        <mvt:if expr="l.settings:navigationitem:link_type EQ 'C' AND l.settings:navigationitem:link_dest EQ 'sale'">
        Thanks Matt! That's some pretty stuff there
        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


          #5
          Originally posted by AHerb View Post
          why don't you check for &mvt:navigationitem:link; content?

          Code:
          <mvt:if expr="l.settings:category:code EQ 'sale' AND l.settings:navigationitem:link EQ '..........' ">
          ?
          Yeah, I had been thinking that I needed to include that in there somehow
          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