foxnetsoft wrote:Yes, use the new code.
Thx. Maybe you can also help me with this. Is code CategoryTemplate.ProductsInGridOrLines. Should i also here change?
@*category breadcrumb*@
@section Breadcrumb
{
@if (Model.DisplayCategoryBreadcrumb)
{
<div class="breadcrumb">
<ul itemscope itemtype="http://schema.org/BreadcrumbList">
<li>
<a href="@Url.RouteUrl("HomePage")" title="@T("Categories.Breadcrumb.Top")">@T("Categories.Breadcrumb.Top")</a>
<span class="delimiter">@breadcrumbDelimiter</span>
</li>
@{ int position = 1; }
@foreach (var cat in Model.CategoryBreadcrumb)
{
var isLastCategory = cat.Id == Model.Id;
<li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
@if (isLastCategory)
{
<strong class="current-item" itemprop="name">@cat.Name</strong>
<span itemprop="item" itemscope itemtype="http://schema.org/Thing">
<link itemprop="url" href="@Url.RouteUrl("Category", new {SeName = cat.SeName})" />
</span>
}
else
{
<a href="@Url.RouteUrl("Category", new { SeName = cat.SeName })" title="@cat.Name" itemprop="item">
<span itemprop="name">@cat.Name</span>
</a>
<span class="delimiter">@breadcrumbDelimiter</span>
}
<meta itemprop="position" content="@position" />
</li>
position++;
}
</ul>
</div>
@await Component.InvokeAsync("Widget", new { widgetZone = PublicWidgetZones.CategoryDetailsAfterBreadcrumb, additionalData = Model })
}
}
Should i change bold code to:
<span itemprop="item" itemscope itemtype="http://schema.org/Thing" id="@Url.RouteUrl("Category", new {SeName = cat.SeName})">
</span>
Sorry, it's nop-templates code… but maybe you or someone other know :) If i good understand i need change it to fix problem with category pages?