Error executing template "Designs/Swift/Navigation/BreadcrumbNavigation.cshtml" System.ArgumentException: An item with the same key has already been added. at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource) at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add) at Dynamicweb.Ecommerce.Products.GroupRelation.GetGroupRelationsByChildId(String childId) at Dynamicweb.Ecommerce.Products.Group.get_IsTopGroup() at Dynamicweb.Ecommerce.Shops.Shop.GetTopLevelGroups(String languageId) at Dynamicweb.Ecommerce.Frontend.Navigation.GroupNavigationTreeNodeProvider.GetGroupsBySettings(PageNavigationSettings ecomSettings) at Dynamicweb.Ecommerce.Frontend.Navigation.GroupNavigationTreeNodeProvider.GetGroups(NavigationTreeNode parent, Page page) at Dynamicweb.Ecommerce.Frontend.Navigation.GroupNavigationTreeNodeProvider.GetNodes(NavigationContext context, NavigationSettings settings, NavigationTreeNode parent) at System.Linq.Enumerable.<SelectManyIterator>d__17`2.MoveNext() at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source, Func`2 predicate) at Dynamicweb.Frontend.Navigation.NavigationService.FilterNodesByExpandMode(NavigationContext context, NavigationSettings settings, NavigationTreeNode parent, IEnumerable`1 nodes, Int32 nodesLevel) at Dynamicweb.Frontend.Navigation.NavigationService.GetNavigationNodes(NavigationContext context, NavigationSettings settings, NavigationTreeNode parent) at Dynamicweb.Frontend.Navigation.NavigationTreeNodeViewModel.get_Nodes() at CompiledRazorTemplates.Dynamic.RazorEngine_b29005dcf9e945f5b11cffbf19eec2f9.Execute() in D:\dynamicweb.net\Solutions\Dynamicweb\hctswift.cloud.dynamicweb-cms.com\files\Templates\Designs\Swift\Navigation\BreadcrumbNavigation.cshtml:line 31 at RazorEngine.Templating.TemplateBase.RazorEngine.Templating.ITemplate.Run(ExecuteContext context, TextWriter reader) at RazorEngine.Templating.RazorEngineService.RunCompile(ITemplateKey key, TextWriter writer, Type modelType, Object model, DynamicViewBag viewBag) at RazorEngine.Templating.RazorEngineServiceExtensions.<>c__DisplayClass16_0.<RunCompile>b__0(TextWriter writer) at RazorEngine.Templating.RazorEngineServiceExtensions.WithWriter(Action`1 withWriter) at Dynamicweb.Rendering.RazorTemplateRenderingProvider.Render(Template template) at Dynamicweb.Rendering.TemplateRenderingService.Render(Template template) at Dynamicweb.Rendering.Template.RenderRazorTemplate()1 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.Navigation.NavigationTreeViewModel> 2 3 @if (!Pageview.IsVisualEditorMode) 4 { 5 string menuId = Model.Parameters.ContainsKey("menu-id") ? $"menu_{Model.Parameters["menu-id"].ToString().ToLower()}" : string.Empty; 6 bool showProductInBreadcrumb = Model.Parameters.ContainsKey("showProductInBreadcrumb") ? Dynamicweb.Core.Converter.ToBoolean(Model.Parameters["showProductInBreadcrumb"]) : false; 7 8 <ol class="breadcrumb small mb-0 @menuId"> 9 @{ 10 var breadCrumbNavigationTree = new Stack<Dynamicweb.Frontend.Navigation.NavigationTreeNodeViewModel>(Model.Nodes); 11 while (breadCrumbNavigationTree.Count > 0) 12 { 13 var currentNode = breadCrumbNavigationTree.Pop(); 14 if (currentNode.ShowInBreadcrumb) 15 { 16 if (!string.IsNullOrEmpty(currentNode.Link)) 17 { 18 <li class="breadcrumb-item"> 19 <a href="@currentNode.Link"> 20 @currentNode.Name 21 </a> 22 </li> 23 } 24 else 25 { 26 <li class="breadcrumb-item"> 27 @currentNode.Name 28 </li> 29 } 30 } 31 foreach (var nextNode in currentNode.Nodes) 32 { 33 breadCrumbNavigationTree.Push(nextNode); 34 } 35 } 36 } 37 @if (showProductInBreadcrumb && !string.IsNullOrEmpty(Dynamicweb.Context.Current.Request.QueryString["ProductID"])) 38 { 39 string productid = Dynamicweb.Context.Current.Request.QueryString["ProductID"]; 40 string variantid = Dynamicweb.Context.Current.Request.QueryString["VariantID"]; 41 var product = Dynamicweb.Ecommerce.Services.Products.GetProductById(productid, variantid, Dynamicweb.Ecommerce.Common.Context.LanguageID); 42 if (product != null) 43 { 44 <li class="breadcrumb-item"> 45 @product.Name 46 </li> 47 } 48 } 49 </ol> 50 } 51 else if (Model.Nodes.Count() < 2) 52 { 53 <div class="alert alert-dark m-0" role="alert"> 54 <span>@Translate("Breadcrumb navigation: The navigation will be shown here, if any")</span> 55 </div> 56 } 57
Sæt
7 produkter
Set diamond grinding points, vacuum brazed, shank Ø 3 mm
Diamond grinding point set (30 pieces), shank Ø 3 mm
Diamond grinding point set (10 pieces), shank Ø 6 mm
Diamant sæt D 64 10 stk. assort. 3,00 mm skaft Diprofile
Diamond grinding point set (30 pieces), shank Ø 2.35 mm
Set (12 pc) of diamond grinding points, shank-Ø 1.6 mm
7 ud af 7 produkter