Airflow sensor | Plymovent

Error executing template "Designs/Plymovent/eCom/Product/ply_productdetails.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_8e2f0ef2de81446a9e7074378355fa9d.Execute() in C:\Data\Hosts\plymovent.com dw9\home\Templates\Designs\Plymovent\eCom\Product\ply_productdetails.cshtml:line 251
   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 RazorTemplateBase<RazorTemplateModel<Template>> 2 @using System; 3 @using System.Linq; 4 @using Dynamicweb; 5 @using Dynamicweb.Rendering; 6 @using System.Globalization; 7 8 9 <div class="productdetail"> 10 <h2 class="subtitle">@GetString("Ecom:Product:Field.Subtitel")</h2> 11 <div class="row"> 12 <div class="col-sm-8"> 13 <div class="row"> 14 @if (GetLoop("Details").Count > 0) 15 { 16 foreach (LoopItem i in GetLoop("Details")) 17 { 18 if (i.GetInteger("Details.LoopCounter") == 1) 19 { 20 <div class="col-md-12"> 21 <div class="product-image-body"> 22 <img src="/Admin/Public/GetImage.ashx?Image=@i.GetString("Ecom:Product:Detail.Image.Clean")&amp;Format=jpg&amp;Width=533&amp;altFmImage_path=@Pageview.Area.Item["Alt_Image"]" alt="@(string.IsNullOrWhiteSpace(GetString("Ecom:Product.MetaTitle")) ? GetString("Ecom:Product.Name") : GetString("Ecom:Product.MetaTitle"))" class="img-full"> 23 </div> 24 </div> 25 } 26 27 <div class="col-xs-4 thumb"> 28 <img src="/Admin/Public/GetImage.ashx?Image=@i.GetString("Ecom:Product:Detail.Image.Clean")&amp;Format=jpg&amp;Width=533&amp;altFmImage_path=@Pageview.Area.Item["Alt_Image"]" alt="@(string.IsNullOrWhiteSpace(GetString("Ecom:Product.MetaTitle")) ? GetString("Ecom:Product.Name") : GetString("Ecom:Product.MetaTitle"))" class="product-image-thumnails img-full"> 29 </div> 30 } 31 } 32 else 33 { 34 <div class="col-md-12"> 35 <div class="product-image-body"> 36 <img src="/Admin/Public/GetImage.ashx?Image=@GetString("Ecom:Product.ImageMedium.Clean")&amp;Format=jpg&amp;Width=533&amp;altFmImage_path=@Pageview.Area.Item["Alt_Image"]" alt="@(string.IsNullOrWhiteSpace(GetString("Ecom:Product.MetaTitle")) ? GetString("Ecom:Product.Name") : GetString("Ecom:Product.MetaTitle"))" class="img-full"> 37 </div> 38 </div> 39 } 40 </div> 41 </div> 42 43 <div class="col-sm-4"> 44 <div class="product-highlights"> 45 <strong class="subsubtitle">@Translate("Highlights", "Highlights")</strong> 46 @GetString("Ecom:Product.ShortDescription") 47 </div> 48 49 @if (!string.IsNullOrEmpty(GetString("Ecom:Product:Field.YoutubeVideo.Value.Clean"))) 50 { 51 <div class="product-video"> 52 <strong class="subsubtitle">@Translate("Video", "Video")</strong> 53 <iframe width="262" allow="autoplay" src="//www.youtube.com/embed/@GetString("Ecom:Product:Field.YoutubeVideo")?rel=0&amp;controls=0&amp;showinfo=0" frameborder="0" allowfullscreen srcdoc="<style>*{padding:0;margin:0;overflow:hidden}html,body{height:100%}img,span{position:absolute;width:100%;top:0;bottom:0;margin:auto}span{height:1.5em;text-align:center;font:48px/1.5 sans-serif;color:white;text-shadow:0 0 0.5em black}</style><a href=https://www.youtube.com/embed/@GetString("Ecom:Product:Field.YoutubeVideo")?autoplay=0&amp;mute=1&amp;rel=0&amp;controls=0&amp;showinfo=0><img src=https://img.youtube.com/vi/@GetString("Ecom:Product:Field.YoutubeVideo")/mqdefault.jpg alt='Product Video'><span>&#9658;</span></a>"></iframe> 54 55 </div> 56 } 57 58 @if (!string.IsNullOrEmpty(GetString("Ecom:Product:Field.DownloadLink1.Value.Clean")) || 59 !string.IsNullOrEmpty(GetString("Ecom:Product:Field.DownloadLink2.Value.Clean")) || 60 !string.IsNullOrEmpty(GetString("Ecom:Product:Field.DownloadLink3.Value.Clean"))) 61 { 62 <div class="product-downloads"> 63 <strong class="subsubtitle">@Translate("Downloads", "Downloads")</strong> 64 <ul> 65 @if (!string.IsNullOrEmpty(GetString("Ecom:Product:Field.DownloadLink1.Value.Clean"))) 66 { 67 var download_title_1 = GetString("Ecom:Product:Field.DownloadLink1.Name"); 68 var metadata = Dynamicweb.Content.Files.Metadata.EditorFactory.GetMetadataForFile(GetString("Ecom:Product:Field.DownloadLink1.Value.Clean")); 69 70 if (metadata != null) 71 { 72 // Use metadata.GetValue(...), e.g. 73 download_title_1 = metadata.GetValue("title"); 74 } 75 76 <li> 77 @GetString("Ecom:Product:Field.DownloadLink1.StartTag")@download_title_1@GetString("Ecom:Product:Field.DownloadLink1.EndTag") 78 </li> 79 } 80 @if (!string.IsNullOrEmpty(GetString("Ecom:Product:Field.DownloadLink2.Value.Clean"))) 81 { 82 var download_title_2 = GetString("Ecom:Product:Field.DownloadLink2.Name"); 83 var metadata = Dynamicweb.Content.Files.Metadata.EditorFactory.GetMetadataForFile(GetString("Ecom:Product:Field.DownloadLink2.Value.Clean")); 84 85 if (metadata != null) 86 { 87 // Use metadata.GetValue(...), e.g. 88 download_title_2 = metadata.GetValue("title"); 89 } 90 91 <li> 92 @GetString("Ecom:Product:Field.DownloadLink2.StartTag")@download_title_2@GetString("Ecom:Product:Field.DownloadLink2.EndTag") 93 </li> 94 } 95 @if (!string.IsNullOrEmpty(GetString("Ecom:Product:Field.DownloadLink3.Value.Clean"))) 96 { 97 var download_title_3 = GetString("Ecom:Product:Field.DownloadLink3.Name"); 98 var metadata = Dynamicweb.Content.Files.Metadata.EditorFactory.GetMetadataForFile(GetString("Ecom:Product:Field.DownloadLink3.Value.Clean")); 99 100 if (metadata != null) 101 { 102 // Use metadata.GetValue(...), e.g. 103 download_title_3 = metadata.GetValue("title"); 104 } 105 <li> 106 @GetString("Ecom:Product:Field.DownloadLink3.StartTag")@download_title_3@GetString("Ecom:Product:Field.DownloadLink3.EndTag") 107 </li> 108 } 109 @if (!string.IsNullOrEmpty(GetString("Ecom:Product:Field.DownloadLink4.Value.Clean"))) 110 { 111 var download_title_4 = GetString("Ecom:Product:Field.DownloadLink4.Name"); 112 var metadata = Dynamicweb.Content.Files.Metadata.EditorFactory.GetMetadataForFile(GetString("Ecom:Product:Field.DownloadLink4.Value.Clean")); 113 114 if (metadata != null) 115 { 116 // Use metadata.GetValue(...), e.g. 117 download_title_4 = metadata.GetValue("title"); 118 } 119 <li> 120 @GetString("Ecom:Product:Field.DownloadLink4.StartTag")@download_title_4@GetString("Ecom:Product:Field.DownloadLink4.EndTag") 121 </li> 122 } 123 @if (!string.IsNullOrEmpty(GetString("Ecom:Product:Field.DownloadLink5.Value.Clean"))) 124 { 125 var download_title_5 = GetString("Ecom:Product:Field.DownloadLink5.Name"); 126 var metadata = Dynamicweb.Content.Files.Metadata.EditorFactory.GetMetadataForFile(GetString("Ecom:Product:Field.DownloadLink5.Value.Clean")); 127 128 if (metadata != null) 129 { 130 // Use metadata.GetValue(...), e.g. 131 download_title_5 = metadata.GetValue("title"); 132 } 133 <li> 134 @GetString("Ecom:Product:Field.DownloadLink5.StartTag")@download_title_5@GetString("Ecom:Product:Field.DownloadLink5.EndTag") 135 </li> 136 } 137 138 @* INTERNAL LINKS *@ 139 140 @if (!string.IsNullOrEmpty(GetString("Ecom:Product:Field.InternalLink1.Value.Clean"))) 141 { 142 var internal_title = GetString("Ecom:Product:Field.TextInternalLink1.Value"); 143 var internal_link = GetString("Ecom:Product:Field.InternalLink1.Value"); 144 <li> 145 <a href="@internal_link">@internal_title</a> 146 </li> 147 } 148 @if (!string.IsNullOrEmpty(GetString("Ecom:Product:Field.InternalLink2.Value.Clean"))) 149 { 150 var internal_title = GetString("Ecom:Product:Field.TextInternalLink2.Value"); 151 var internal_link = GetString("Ecom:Product:Field.InternalLink2.Value"); 152 <li> 153 <a href="@internal_link">@internal_title</a> 154 </li> 155 } 156 @if (!string.IsNullOrEmpty(GetString("Ecom:Product:Field.InternalLink3.Value.Clean"))) 157 { 158 var internal_title = GetString("Ecom:Product:Field.TextInternalLink3.Value"); 159 var internal_link = GetString("Ecom:Product:Field.InternalLink3.Value"); 160 <li> 161 <a href="@internal_link">@internal_title</a> 162 </li> 163 } 164 @if (!string.IsNullOrEmpty(GetString("Ecom:Product:Field.InternalLink4.Value.Clean"))) 165 { 166 var internal_title = GetString("Ecom:Product:Field.TextInternalLink4.Value"); 167 var internal_link = GetString("Ecom:Product:Field.InternalLink4.Value"); 168 <li> 169 <a href="@internal_link">@internal_title</a> 170 </li> 171 } 172 173 </ul> 174 </div> 175 } 176 177 @if (!string.IsNullOrEmpty(GetString("Ecom:Product:Field.ManualLink.Value.Clean")) && !string.IsNullOrEmpty(GetString("Ecom:Product:Field.ManualName"))) 178 { 179 <div class="product-downloads"> 180 <strong class="subsubtitle">@Translate("Manuals", "Manuals")</strong> 181 182 <ul> 183 <li> 184 <a target="_blank" href="@(GetString("Ecom:Product:Field.ManualLink.Value.Clean"))">@GetString("Ecom:Product:Field.ManualName")</a> 185 </li> 186 </ul> 187 188 </div> 189 } 190 191 @{ 192 var contactPageID = Pageview.Area.Item["ContactPageGlobalID"]; 193 if (!string.IsNullOrWhiteSpace(contactPageID.ToString())) 194 { 195 var subject = System.Web.HttpUtility.UrlEncode(string.Format("{0}: {1}", Translate("Get_a_quote", "Get a quote"), GetString("Ecom:Product.Name"))); 196 <a href="/Default.aspx?ID=@contactPageID&Subject=@subject" class="get-a-quote">@Translate("Get_a_quote", "Get a quote")</a> 197 } 198 } 199 200 @if (!string.IsNullOrWhiteSpace(GetString("Ecom:Product:Field.BuyNowURL"))) 201 { 202 <a href="@GetString("Ecom:Product:Field.BuyNowURL")" target="_blank" class="get-a-quote gray-bg">@Translate("Buy now", "Buy now")</a> 203 } 204 </div> 205 206 207 <div class="col-sm-12"> 208 <strong class="subsubtitle"> 209 @Translate("Description", "Description") 210 </strong> 211 212 <div class="product-info"> 213 @GetString("Ecom:Product.LongDescription") 214 </div> 215 @*<div class="product-share"> 216 <!-- AddThis Button BEGIN --> 217 <ul class="addthis_toolbox addthis_default_style"> 218 <li><a class="fa fa-facebook addthis_button_facebook" href="javascript:void(0);"><span class="text-hide">Deel op Facebook</span></a></li> 219 <li><a class="fa fa-twitter addthis_button_twitter" href="javascript:void(0);"><span class="text-hide">Deel op Twitter</span></a></li> 220 <li><a class="fa fa-envelope-o addthis_button_email" href="javascript:void(0);"><span class="text-hide">Mail</span></a></li> 221 <li><a class="fa fa-linkedin addthis_button_linkedin" href="javascript:void(0);"><span class="text-hide">Deel op LinkedIn</span></a></li> 222 </ul> 223 <script type="text/javascript">var addthis_config = { "data_track_addressbar": false };</script> 224 <script type="text/javascript" src="https://s7.addthis.com/js/250/addthis_widget.js"></script> 225 <!-- AddThis Button END --> 226 </div>*@ 227 </div> 228 229 @if (!string.IsNullOrEmpty(GetString("Ecom:Product:Field.SpecificatiesFeatures.Value.Clean"))) 230 { 231 <div class="col-sm-8"> 232 <strong class="subsubtitle">@Translate("Features", "Features")</strong> 233 <div class="product-features"> 234 @GetString("Ecom:Product:Field.SpecificatiesFeatures") 235 </div> 236 </div> 237 } 238 239 <div class="col-sm-4"> 240 @if (!string.IsNullOrEmpty(GetString("Ecom:Product:Field.RecommendedFor.Value.Clean"))) 241 { 242 <strong class="subsubtitle">@Translate("Recommended_for", "Recommended for")</strong> 243 <div class="product-recommendations"> 244 @GetString("Ecom:Product:Field.RecommendedFor") 245 </div> 246 } 247 </div> 248 249 </div> 250 @{ 251 var render = RenderItemList( 252 new 253 { 254 ItemType = "References", 255 ListSourceType = "Area", 256 ListSourceArea = Pageview.AreaID, 257 ItemFieldsList = "*", 258 ListTemplate = "ItemPublisher/List/ply_references_list.cshtml", 259 ListPageSize = 12, 260 Filter = @"ProductList contains """ + GetString("Ecom:Product.ID") + @"""" 261 }); 262 if (!string.IsNullOrWhiteSpace(render.ToString()) && render.ToString().Contains("img")) 263 { 264 <div class="row"> 265 <div class="col-sm-12"> 266 <strong class="subsubtitle">@Translate("References", "References")</strong> 267 @render 268 </div> 269 </div> 270 } 271 } 272 <span style="display:none;">@Pageview.Area.Item["USPGlobalID"]</span> 273 </div> 274

This website uses cookies to track your behaviour and to improve your experience on the site.

You can always delete saved cookies by visiting the advanced settings of your browser.

*Privacy Statement