Error compiling template "Designs/Swift/Navigation/BreadcrumbNavigation.cshtml"
Line 141: Argument 1: cannot convert from 'method group' to 'object'

1 //------------------------------------------------------------------------------ 2 // <auto-generated> 3 // This code was generated by a tool. 4 // Runtime Version:4.0.30319.42000 5 // 6 // Changes to this file may cause incorrect behavior and will be lost if 7 // the code is regenerated. 8 // </auto-generated> 9 //------------------------------------------------------------------------------ 10 11 namespace CompiledRazorTemplates.Dynamic { 12 using System; 13 using System.Collections.Generic; 14 using System.Linq; 15 16 17 public class RazorEngine_727c29c2920d45a4a35c1f43d878a5fb : Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.Navigation.NavigationTreeViewModel> { 18 19 #line hidden 20 21 public RazorEngine_727c29c2920d45a4a35c1f43d878a5fb() { 22 } 23 24 public override void Execute() { 25 26 #line 3 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Navigation\BreadcrumbNavigation.cshtml" 27 if (!Pageview.IsVisualEditorMode) 28 { 29 string menuId = Model.Parameters.ContainsKey("menu-id") ? $"menu_{Model.Parameters["menu-id"].ToString().ToLower()}" : string.Empty; 30 bool showProductInBreadcrumb = Model.Parameters.ContainsKey("showProductInBreadcrumb") ? Dynamicweb.Core.Converter.ToBoolean(Model.Parameters["showProductInBreadcrumb"]) : false; 31 32 33 34 #line default 35 #line hidden 36 WriteLiteral("\t<ol"); 37 38 WriteAttribute("class", Tuple.Create(" class=\"", 469), Tuple.Create("\"", 506) 39 , Tuple.Create(Tuple.Create("", 477), Tuple.Create("breadcrumb", 477), true) 40 , Tuple.Create(Tuple.Create(" ", 487), Tuple.Create("small", 488), true) 41 , Tuple.Create(Tuple.Create(" ", 493), Tuple.Create("mb-0", 494), true) 42 43 #line 8 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Navigation\BreadcrumbNavigation.cshtml" 44 , Tuple.Create(Tuple.Create(" ", 498), Tuple.Create<System.Object, System.Int32>(menuId 45 46 #line default 47 #line hidden 48 , 499), false) 49 ); 50 51 WriteLiteral(">\r\n"); 52 53 54 #line 9 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Navigation\BreadcrumbNavigation.cshtml" 55 56 57 #line default 58 #line hidden 59 60 #line 9 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Navigation\BreadcrumbNavigation.cshtml" 61 62 var breadCrumbNavigationTree = new Stack<Dynamicweb.Frontend.Navigation.NavigationTreeNodeViewModel>(Model.Nodes); 63 while (breadCrumbNavigationTree.Count > 0) 64 { 65 var currentNode = breadCrumbNavigationTree.Pop(); 66 if (currentNode.ShowInBreadcrumb) 67 { 68 if (!string.IsNullOrEmpty(currentNode.Link)) 69 { 70 71 72 #line default 73 #line hidden 74 WriteLiteral("\t\t\t\t\t\t<li"); 75 76 WriteLiteral(" class=\"breadcrumb-item\""); 77 78 WriteLiteral(">\r\n\t\t\t\t\t\t\t<a"); 79 80 WriteAttribute("href", Tuple.Create(" href=\"", 893), Tuple.Create("\"", 917) 81 82 #line 19 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Navigation\BreadcrumbNavigation.cshtml" 83 , Tuple.Create(Tuple.Create("", 900), Tuple.Create<System.Object, System.Int32>(currentNode.Link 84 85 #line default 86 #line hidden 87 , 900), false) 88 ); 89 90 WriteLiteral(">\r\n"); 91 92 WriteLiteral("\t\t\t\t\t\t\t\t"); 93 94 95 #line 20 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Navigation\BreadcrumbNavigation.cshtml" 96 Write(currentNode.Name); 97 98 99 #line default 100 #line hidden 101 WriteLiteral("\r\n\t\t\t\t\t\t\t</a>\r\n\t\t\t\t\t\t</li>\r\n"); 102 103 104 #line 23 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Navigation\BreadcrumbNavigation.cshtml" 105 } 106 else 107 { 108 109 110 #line default 111 #line hidden 112 WriteLiteral("\t\t\t\t\t\t<li"); 113 114 WriteLiteral(" class=\"breadcrumb-item\""); 115 116 WriteLiteral(">\r\n"); 117 118 WriteLiteral("\t\t\t\t\t\t\t"); 119 120 121 #line 27 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Navigation\BreadcrumbNavigation.cshtml" 122 Write(currentNode.Name); 123 124 125 #line default 126 #line hidden 127 WriteLiteral("\r\n\t\t\t\t\t\t</li>\r\n"); 128 129 130 #line 29 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Navigation\BreadcrumbNavigation.cshtml" 131 } 132 } 133 134 135 #line default 136 #line hidden 137 WriteLiteral("<h1>"); 138 139 140 #line 31 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Navigation\BreadcrumbNavigation.cshtml" 141 Write(currentNode.Nodes.Count); 142 143 144 #line default 145 #line hidden 146 WriteLiteral("</h1>\r\n"); 147 148 149 #line 32 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Navigation\BreadcrumbNavigation.cshtml" 150 151 foreach (var nextNode in currentNode.Nodes) 152 { 153 breadCrumbNavigationTree.Push(nextNode); 154 } 155 } 156 157 158 #line default 159 #line hidden 160 WriteLiteral("\r\n"); 161 162 163 #line 39 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Navigation\BreadcrumbNavigation.cshtml" 164 165 166 #line default 167 #line hidden 168 169 #line 39 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Navigation\BreadcrumbNavigation.cshtml" 170 if (showProductInBreadcrumb && !string.IsNullOrEmpty(Dynamicweb.Context.Current.Request.QueryString["ProductID"])) 171 { 172 string productid = Dynamicweb.Context.Current.Request.QueryString["ProductID"]; 173 string variantid = Dynamicweb.Context.Current.Request.QueryString["VariantID"]; 174 var product = Dynamicweb.Ecommerce.Services.Products.GetProductById(productid, variantid, Dynamicweb.Ecommerce.Common.Context.LanguageID); 175 if (product != null) 176 { 177 178 179 #line default 180 #line hidden 181 WriteLiteral("\t\t\t\t<li"); 182 183 WriteLiteral(" class=\"breadcrumb-item\""); 184 185 WriteLiteral(">\r\n"); 186 187 WriteLiteral("\t\t\t\t\t"); 188 189 190 #line 47 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Navigation\BreadcrumbNavigation.cshtml" 191 Write(product.Name); 192 193 194 #line default 195 #line hidden 196 WriteLiteral("\r\n\t\t\t\t</li>\r\n"); 197 198 199 #line 49 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Navigation\BreadcrumbNavigation.cshtml" 200 } 201 } 202 203 204 #line default 205 #line hidden 206 WriteLiteral("\t</ol>\r\n"); 207 208 209 #line 52 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Navigation\BreadcrumbNavigation.cshtml" 210 } 211 else if (Model.Nodes.Count() < 2) 212 { 213 214 215 #line default 216 #line hidden 217 WriteLiteral("\t<div"); 218 219 WriteLiteral(" class=\"alert alert-dark m-0\""); 220 221 WriteLiteral(" role=\"alert\""); 222 223 WriteLiteral(">\r\n\t\t<span>"); 224 225 226 #line 56 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Navigation\BreadcrumbNavigation.cshtml" 227 Write(Translate("Breadcrumb navigation: The navigation will be shown here, if any")); 228 229 230 #line default 231 #line hidden 232 WriteLiteral("</span>\r\n\t</div>\r\n"); 233 234 235 #line 58 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Navigation\BreadcrumbNavigation.cshtml" 236 } 237 238 239 #line default 240 #line hidden 241 } 242 } 243 } 244

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 <h1>@currentNode.Nodes.Count</h1> 32 33 foreach (var nextNode in currentNode.Nodes) 34 { 35 breadCrumbNavigationTree.Push(nextNode); 36 } 37 } 38 } 39 @if (showProductInBreadcrumb && !string.IsNullOrEmpty(Dynamicweb.Context.Current.Request.QueryString["ProductID"])) 40 { 41 string productid = Dynamicweb.Context.Current.Request.QueryString["ProductID"]; 42 string variantid = Dynamicweb.Context.Current.Request.QueryString["VariantID"]; 43 var product = Dynamicweb.Ecommerce.Services.Products.GetProductById(productid, variantid, Dynamicweb.Ecommerce.Common.Context.LanguageID); 44 if (product != null) 45 { 46 <li class="breadcrumb-item"> 47 @product.Name 48 </li> 49 } 50 } 51 </ol> 52 } 53 else if (Model.Nodes.Count() < 2) 54 { 55 <div class="alert alert-dark m-0" role="alert"> 56 <span>@Translate("Breadcrumb navigation: The navigation will be shown here, if any")</span> 57 </div> 58 } 59

SIMPLEHUMAN BIN BAG LINER C (10-12L) 20PCS

0231245
• PERFECT FIT - Simplehuman's custom fit liners are tailored to fit its bins perfectly, so they don't slip, and they stay neatly hidden when the lid is closed
• NO RIPS, NO PUNCTURES - Extra-durable plastic and thick double seams let you pack your trash to the rim without worry of tears or leaks
• CONVENIENT DRAWSTRING HANDLES - Easy to lift, tie and carry
• ONE-BY-ONE - Simplehuman's quick-dispense pack lets you grab liners one by one without the hassle of hard-to-find perforations or messy unraveling
• Suitable for 10-12L bins
• Set of 20pcs
€ 6.49 InStock
Low stock

Product Details

Barcode
838810003139
Brand
Simplehuman
On Offer
No
Supplier Item
CW0162
Category
Bin Liners
Capacity
10-12Ltr
Weight
0.5Kg