previous and next breadcrumb shortlink with ToolKit - how to include category

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • godogo
    Mivite

    • Jun 2006
    • 153

    #1

    previous and next breadcrumb shortlink with ToolKit - how to include category

    Using ToolKit, I've got my breadcrumbs, previous and next buttons on product pages working nicely with shortlinks. The only problem is that when I use the previous and next links it drops the category from the breadcrumb trail. I'm sure the fix is easy but I'm having trouble getting it to work. If someone could help I would much appreciate it.

    Here is my current code:
    Code:
     <mvt:item name="toolkit" param="breadcrumb|b_count|g.Category_Code" />
    <mvt:if expr="b_count GT 0">
    <a href="http://www.mysite.com/mm5/merchant.mvc">Home</a>
    <mvt:foreach iterator="breadcrumb" array="breadcrumbs">
    <mvt:if expr="g.Category_Code EQ l.settings:breadcrumb:code">
    <b> <a href="http://www.mysite.com/c-&mvte:breadcrumb:code;.html">
    &mvt:breadcrumb:name;</a></b>
    <mvt:else>
    <a href="http://www.mysite.com/c-&mvte:breadcrumb:code;.html">
    &mvt:breadcrumb:name;</a>
    </mvt:if>
    </mvt:foreach> &#062; &mvt:product:name;
    </mvt:if>
            </td>
           <td class="prevnxt">
            <mvt:item name="toolkit" param="nextprevious|l.all_settings:product:code" />
    <mvt:if expr="l.settings:tkskip:next">
    <span class="arrs">&larr; </span><a href="http://www.mysite.com/p-&mvte:tkskip:next;.html">
    Previous</a>
    </mvt:if>
    <span class="dots">.</span>
    <mvt:if expr="l.settings:tkskip:previous">
    <a href="http://www.mysite.com/p-&mvte:tkskip:previous;.html">
    Next</a> <span class="arrs">&rarr;</span>
    </mvt:if>
Working...
X