I have a site using the Iron and Wool ReadyTheme where the breadcrumbs are behaving very oddly on the category page.
HTML Output onto CTGY page:
So instead of linking to the parent category, it is treating the parent cat as though it is the currently active cat. The toolkit was used to get around this on the alternate display pages, but I'm trying to clean up old toolkit code where possible and would prefer to use the built in code. Any ideas what could be causing this?
Code:
<mvt:if expr="NOT (l.settings:page:code CIN g.screenCheck) AND l.settings:page:code NE 'SFNT'"> <div class="row breadcrumbs"> <nav class="column whole wrap float-none large-np"> <ul> <li><a href="https://&mvt:global:domain:name;" title="Home" class="breadcrumb-home">Home</a><span class="breadcrumb-border">/</span></li> <mvt:foreach iterator="cats" array="breadcrumbs:links"> <mvt:item name="customfields" param="Read_Category_Code(l.settings:cats:code,'no_crumb',g.exclude_ctgy)" /> <mvt:if expr="NOT(g.exclude_ctgy EQ 'yes')"> <mvt:if expr="l.settings:cats:name EQ '...'"> <li><span class="cats-hidden">&mvt:cats:name;</span><span class="breadcrumb-border">/</span></li> <mvt:elseif expr="l.settings:cats:code EQ l.settings:breadcrumbs:current_item:code"> <li><span class="current-item">&mvt:cats:name;</span></li> <mvt:else> <li><a href="/ctgy/&mvt:cats:code;" title="&mvt:cats:name;">&mvt:cats:name;</a><span class="breadcrumb-border">/</span></li> </mvt:if> </mvt:if> </mvt:foreach> <!-- &mvt:breadcrumbs:current_item:name; --> </ul> </nav> </div> <!-- end breadcrumbs --> </mvt:if>
HTML Output onto CTGY page:
Code:
<div class="row breadcrumbs"> <nav class="column whole wrap float-none large-np"> <ul> <li><a href="domain.com" title="Home" class="breadcrumb-home">Home</a><span class="breadcrumb-border">/</span></li> <li><span class="current-item">Parent Category</span></li> <li><a href="/ctgy/category" title="Current Category">Current Category</a><span class="breadcrumb-border">/</span></li> <!-- Parent Category --> </ul> </nav> </div> <!-- end breadcrumbs -->
Comment