Mehrarmsystem | Plymovent

Error executing template "Designs/Plymovent/eCom/Productlist/ply_productlist.cshtml"
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
   at Dynamicweb.ItemPublisher.FilterHelper.ToXml(String filter)
   at Dynamicweb.ItemPublisher.Frontend.GetContentBySettings(String settings)
   --- End of inner exception stack trace ---
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
   at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at Dynamicweb.Extensibility.AddIns.AddInManager.InvokeFunction(Object instance, String functionName, Object[] arguments)
   at Dynamicweb.Rendering.TemplateBase`1.RenderItemList(Object settings) in E:\Agent\_work\169\s\06 - Dynamicweb Host\Dynamicweb\Dynamicweb-9.9\Dynamicweb\Rendering\TemplateBase.cs:line 306
   at CompiledRazorTemplates.Dynamic.RazorEngine_9bf463805e014973badaf78da6d45821.Execute() in C:\Data\Hosts\plymovent.com dw9\home\Templates\Designs\Plymovent\eCom\Productlist\ply_productlist.cshtml:line 77
   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.b__0(TextWriter writer)
   at RazorEngine.Templating.RazorEngineServiceExtensions.WithWriter(Action`1 withWriter)
   at Dynamicweb.Rendering.Template.RenderRazorTemplate() in E:\Agent\_work\169\s\06 - Dynamicweb Host\Dynamicweb\Dynamicweb-9.9\Dynamicweb\Rendering\Template.cs:line 902

1 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> 2 3 @using Dynamicweb; 4 @using Dynamicweb.Content; 5 @using Dynamicweb.Rendering; 6 @using Dynamicweb.Frontend; 7 @using Dynamicweb.Content.Items; 8 @using Dynamicweb.Content.Items.Rendering; 9 10 @{ 11 var langid = Pageview.Area.EcomLanguageId; 12 } 13 <div class="productlist"> 14 <div class="row"> 15 <div class="col-md-12"> 16 @GetString("Ecom:Group.Description") 17 <div class="row"> 18 @foreach (LoopItem i in GetLoop("Products")) 19 { 20 if (langid.ToString() == i.GetValue("Ecom:Product.LanguageID").ToString()) 21 { 22 <div class="col-md-4 col-sm-6 col-xs-12"> 23 <div class="productitem" style="height: 400px;"> 24 <a href="@i.GetString("Ecom:Product.LinkGroup.Clean")" title="@i.GetString("Ecom:Product.Name")"> 25 <img src="/Admin/Public/GetImage.ashx?Image=@i.GetString("Ecom:Product.ImageMedium.Clean")&amp;Format=jpg&amp;Width=230&amp;altFmImage_path=@Pageview.Area.Item["Alt_Image"]" alt="@(string.IsNullOrWhiteSpace(i.GetString("Ecom:Product.MetaTitle")) ? i.GetString("Ecom:Product.Name") : i.GetString("Ecom:Product.MetaTitle"))" class="img-full"> 26 <span class="product-caption"> 27 @i.GetString("Ecom:Product.Name") 28 </span> 29 @i.GetString("Ecom:Product.ShortDescription") 30 </a> 31 </div> 32 </div> 33 } 34 } 35 </div> 36 37 @if (GetInteger("Ecom:ProductList.TotalPages") > 1) 38 { 39 <nav class="text-center"> 40 <ul class="pagination"> 41 @if (GetInteger("Ecom:ProductList.CurrentPage") > 1) 42 { 43 <li> 44 <a href="@GetString("Ecom:ProductList.PrevPage.Clean")"> 45 @Translate("Previous", "Previous") 46 </a> 47 </li> 48 } 49 50 @foreach (LoopItem i in GetLoop("Ecom:ProductList.Pages3")) 51 { 52 string active = i.GetBoolean("Ecom:ProductList.Pages3.Page.IsCurrent") ? "active" : null; 53 54 <li class="@active"> 55 <a href="@i.GetString("Ecom:ProductList.Pages3.Page.UrlHtmlEncoded")"> 56 @i.GetString("Ecom:ProductList.Pages3.Page.Number") 57 </a> 58 </li> 59 } 60 61 @if (GetInteger("Ecom:ProductList.TotalPages") > GetInteger("Ecom:ProductList.CurrentPage")) 62 { 63 <li class="product-list-paging-last"> 64 <a href="@GetString("Ecom:ProductList.NextPage.Clean")"> 65 @Translate("Next", "Next") 66 </a> 67 </li> 68 } 69 </ul> 70 </nav> 71 } 72 </div> 73 </div> 74 75 76 @{ 77 var render = RenderItemList(new 78 { 79 ItemType = "References", 80 ListSourceType = "Area", 81 ListSourceArea = Pageview.AreaID, 82 ItemFieldsList = "*", 83 ListTemplate = "ItemPublisher/List/ply_references_list.cshtml", 84 ListPageSize = 16, 85 Filter = @"ProductGroups contains """ + GetString("Ecom:Group.ID") + @"""" 86 }); 87 88 if (!string.IsNullOrWhiteSpace(render.ToString()) && render.ToString().Contains("img")) 89 { 90 <div class="row"> 91 <div class="col-md-12"> 92 <h3 id="ref">@Translate("References", "References")</h3> 93 @render 94 </div> 95 </div> 96 } 97 } 98 </div>

Diese Website verwendet Cookies, um Ihre Surferfahrung zu verbessern und um Ihr Surfverhalten nachzuverfolgen.

Gespeicherte Cookies können Sie jederzeit über die erweiterten Einstellungen Ihres Webbrowsers löschen.

*Privacy Statement