Error compiling template "Designs/Swift/Navigation/BreadcrumbNavigation.cshtml"
Line 74: 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_deb0db66198b4b61918d026e6cb386be : Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.Navigation.NavigationTreeViewModel> { 18 19 #line hidden 20 21 public RazorEngine_deb0db66198b4b61918d026e6cb386be() { 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 67 68 #line default 69 #line hidden 70 WriteLiteral("<h1>"); 71 72 73 #line 14 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Navigation\BreadcrumbNavigation.cshtml" 74 Write(currentNode.Nodes.Count); 75 76 77 #line default 78 #line hidden 79 WriteLiteral("</h1>\r\n"); 80 81 82 #line 15 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Navigation\BreadcrumbNavigation.cshtml" 83 if (currentNode.ShowInBreadcrumb) 84 { 85 if (!string.IsNullOrEmpty(currentNode.Link)) 86 { 87 88 89 #line default 90 #line hidden 91 WriteLiteral("\t\t\t\t\t\t<li"); 92 93 WriteLiteral(" class=\"breadcrumb-item\""); 94 95 WriteLiteral(">\r\n\t\t\t\t\t\t\t<a"); 96 97 WriteAttribute("href", Tuple.Create(" href=\"", 928), Tuple.Create("\"", 952) 98 99 #line 20 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Navigation\BreadcrumbNavigation.cshtml" 100 , Tuple.Create(Tuple.Create("", 935), Tuple.Create<System.Object, System.Int32>(currentNode.Link 101 102 #line default 103 #line hidden 104 , 935), false) 105 ); 106 107 WriteLiteral(">\r\n"); 108 109 WriteLiteral("\t\t\t\t\t\t\t\t"); 110 111 112 #line 21 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Navigation\BreadcrumbNavigation.cshtml" 113 Write(currentNode.Name); 114 115 116 #line default 117 #line hidden 118 WriteLiteral("\r\n\t\t\t\t\t\t\t</a>\r\n\t\t\t\t\t\t</li>\r\n"); 119 120 121 #line 24 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Navigation\BreadcrumbNavigation.cshtml" 122 } 123 else 124 { 125 126 127 #line default 128 #line hidden 129 WriteLiteral("\t\t\t\t\t\t<li"); 130 131 WriteLiteral(" class=\"breadcrumb-item\""); 132 133 WriteLiteral(">\r\n"); 134 135 WriteLiteral("\t\t\t\t\t\t\t"); 136 137 138 #line 28 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Navigation\BreadcrumbNavigation.cshtml" 139 Write(currentNode.Name); 140 141 142 #line default 143 #line hidden 144 WriteLiteral("\r\n\t\t\t\t\t\t</li>\r\n"); 145 146 147 #line 30 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Navigation\BreadcrumbNavigation.cshtml" 148 } 149 } 150 foreach (var nextNode in currentNode.Nodes) 151 { 152 breadCrumbNavigationTree.Push(nextNode); 153 } 154 } 155 156 157 #line default 158 #line hidden 159 WriteLiteral("\r\n"); 160 161 162 #line 38 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Navigation\BreadcrumbNavigation.cshtml" 163 164 165 #line default 166 #line hidden 167 168 #line 38 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Navigation\BreadcrumbNavigation.cshtml" 169 if (showProductInBreadcrumb && !string.IsNullOrEmpty(Dynamicweb.Context.Current.Request.QueryString["ProductID"])) 170 { 171 string productid = Dynamicweb.Context.Current.Request.QueryString["ProductID"]; 172 string variantid = Dynamicweb.Context.Current.Request.QueryString["VariantID"]; 173 var product = Dynamicweb.Ecommerce.Services.Products.GetProductById(productid, variantid, Dynamicweb.Ecommerce.Common.Context.LanguageID); 174 if (product != null) 175 { 176 177 178 #line default 179 #line hidden 180 WriteLiteral("\t\t\t\t<li"); 181 182 WriteLiteral(" class=\"breadcrumb-item\""); 183 184 WriteLiteral(">\r\n"); 185 186 WriteLiteral("\t\t\t\t\t"); 187 188 189 #line 46 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Navigation\BreadcrumbNavigation.cshtml" 190 Write(product.Name); 191 192 193 #line default 194 #line hidden 195 WriteLiteral("\r\n\t\t\t\t</li>\r\n"); 196 197 198 #line 48 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Navigation\BreadcrumbNavigation.cshtml" 199 } 200 } 201 202 203 #line default 204 #line hidden 205 WriteLiteral("\t</ol>\r\n"); 206 207 208 #line 51 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Navigation\BreadcrumbNavigation.cshtml" 209 } 210 else if (Model.Nodes.Count() < 2) 211 { 212 213 214 #line default 215 #line hidden 216 WriteLiteral("\t<div"); 217 218 WriteLiteral(" class=\"alert alert-dark m-0\""); 219 220 WriteLiteral(" role=\"alert\""); 221 222 WriteLiteral(">\r\n\t\t<span>"); 223 224 225 #line 55 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Navigation\BreadcrumbNavigation.cshtml" 226 Write(Translate("Breadcrumb navigation: The navigation will be shown here, if any")); 227 228 229 #line default 230 #line hidden 231 WriteLiteral("</span>\r\n\t</div>\r\n"); 232 233 234 #line 57 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Navigation\BreadcrumbNavigation.cshtml" 235 } 236 237 238 #line default 239 #line hidden 240 } 241 } 242 } 243

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

ΣΤΡΩΜΑ HERMES POCKET 107X192

0239278
€ 399.99 InStock

Λεπτομέρειες

Barcode
2200002392785
Σε Προσφορά
No
Supplier Item
MZSHHERM107X192
Κατηγορία
Μονά Κρεβάτια
Βάρος
34Kg