Smart Breadcrumbs Question Please

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Spinner
    Mini Mivite

    • Oct 2011
    • 45

    #1

    Smart Breadcrumbs Question Please

    Hello, I am working on my CSSUI dev site and can't figure out how to remove the name of the product at the end of the breadcrumbs when on the product page. Some of my product names are quite long and they show up at the top of the product page anyway so I do not need it on the end of the breadcrumbs. My code from the smart breadcrumbs tab is pasted below. I know it is the current-item but I can not figure out how to change or re-do the if/else statement. Can anyone help?
    Thank you in advance for any help you can provide.
    Sincerely, Iris
    <div id="breadcrumbs">
    <ul>
    <li><a href="&mvt:breadcrumbs:homelink;" class="breadcrumb-home">Home</a><span class="breadcrumb-border">&gt; </span>
    <mvt:foreach iterator="cats" array="breadcrumbs:links">
    <mvt:if expr="l.settings:cats:name EQ '...'">
    <li><span class="cats-hidden">&mvt:cats:name;</span><span class="breadcrumb-border">&gt; </span>
    <mvt:elseif expr="l.settings:cats:current">
    <span class="current-item">&mvt:cats:name;</span>
    <mvt:else>
    <a href="&mvt:cats:link;">&mvt:cats:name;</a><span class="breadcrumb-border">&gt; </span></li>
    </mvt:if>
    </mvt:foreach>
    </ul>
    </div>
    <br />
    <br />
    <div class="clear"></div>
  • JFancett
    Mivite


    • Feb 2007
    • 453

    #2
    Re: Smart Breadcrumbs Question Please

    Looks like the product name is built into the smart breadcrumbs. It doesn't get rid of the divider after the last category, but you can add a style of display:none to the class current-item to not show the product name.
    Jason Fancett
    America's SPA-MART - "Where Spa Owners Shop SMART!"
    Check us out for all of your hot tub needs including spa covers, spa filters, spa chemicals and more.
    Miva Merchant forum users can use coupon code MIVAFORUM to receive $5 off your first order of $30 or more.

    Comment

    • Spinner
      Mini Mivite

      • Oct 2011
      • 45

      #3
      Re: Smart Breadcrumbs Question Please

      Jason, THANK YOU! I kept trying to rewrite or remove the current-item. I did what you suggested and it worked!
      I appreciate you taking the time to help me with this.
      Iris

      Comment

      • Dan - Glendale Designs
        Mega Mivite


        • Sep 2006
        • 2904

        #4
        Re: Smart Breadcrumbs Question Please

        I have used something like the following a few times:

        Code:
        <mvt:if expr="l.settings:[COLOR=#333333][FONT=Arial]cats:code NE l.settings:product:code[/FONT][/COLOR]">
        Wrap conditional around the greater than character and the final crumb name/link displays, should work without affecting the category crumbs.

        Comment

        • Spinner
          Mini Mivite

          • Oct 2011
          • 45

          #5
          Re: Smart Breadcrumbs Question Please

          Dan, Thank you for your answer. I do not understand what you mean by Wrap Conditional around the greater than character or where to put the line of code. I was able to get the current-item to not display by adding the style of display:none to the class current-item which Jason suggested. Both ways probably work...I just do not understand what to do to implement your suggestion. Thank you very much for taking the time to help me with my problem!
          Iris

          Comment

          Working...
          X