Líder del mercado Innovador y líder Tecnología más segura Dealerlocator Empresas KOKS Robotics AQ-Rent KOKS United States ROM EUROM s.r.o. Nederlands English Deutsch français español čeština American
Error compiling template "Designs/ClientBase_generated/Navigation/MainNavigation.cshtml" Line 49: "NavigationTreeNodeViewModel" no contiene una definición para "Clickable" ni un método de extensión accesible "Clickable" que acepte un primer argumento del tipo "NavigationTreeNodeViewModel" (¿falta alguna directiva using o una referencia de ensamblado?) 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 #line 2 "D:\dynamicweb.net\Solutions\Bluedesk\koksgroup.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\Navigation\MainNavigation.cshtml" 17 using Dynamicweb; 18 19 #line default 20 #line hidden 21 22 23 public class RazorEngine_43f2d53610564ca38eccddd3a11c39f3 : Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.Navigation.NavigationTreeViewModel> { 24 25 #line hidden 26 27 public RazorEngine_43f2d53610564ca38eccddd3a11c39f3() { 28 } 29 30 public override void Execute() { 31 WriteLiteral("\r\n<div"); 32 33 WriteLiteral(" class=\"mainmenu__list-container\""); 34 35 WriteLiteral(">\r\n <ul"); 36 37 WriteLiteral(" class=\"mainmenu__list h-full\""); 38 39 WriteLiteral(">\r\n\r\n"); 40 41 42 #line 7 "D:\dynamicweb.net\Solutions\Bluedesk\koksgroup.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\Navigation\MainNavigation.cshtml" 43 44 45 #line default 46 #line hidden 47 48 #line 7 "D:\dynamicweb.net\Solutions\Bluedesk\koksgroup.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\Navigation\MainNavigation.cshtml" 49 foreach (var node in Model.Nodes.Where(n => n.Clickable)) 50 { 51 string activeClass = node.IsActive ? "mainmenu__link--active" : ""; 52 53 54 55 #line default 56 #line hidden 57 WriteLiteral(" <li"); 58 59 WriteLiteral(" class=\"mainmenu__item\""); 60 61 WriteLiteral(">\r\n <a"); 62 63 WriteAttribute("href", Tuple.Create(" href=\"", 431), Tuple.Create("\"", 448) 64 65 #line 12 "D:\dynamicweb.net\Solutions\Bluedesk\koksgroup.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\Navigation\MainNavigation.cshtml" 66 , Tuple.Create(Tuple.Create("", 438), Tuple.Create<System.Object, System.Int32>(node.Link 67 68 #line default 69 #line hidden 70 , 438), false) 71 ); 72 73 WriteAttribute("class", Tuple.Create(" class=\"", 449), Tuple.Create("\"", 484) 74 , Tuple.Create(Tuple.Create("", 457), Tuple.Create("mainmenu__link", 457), true) 75 76 #line 12 "D:\dynamicweb.net\Solutions\Bluedesk\koksgroup.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\Navigation\MainNavigation.cshtml" 77 , Tuple.Create(Tuple.Create(" ", 471), Tuple.Create<System.Object, System.Int32>(activeClass 78 79 #line default 80 #line hidden 81 , 472), false) 82 ); 83 84 WriteLiteral(">\r\n <span"); 85 86 WriteLiteral(" data-text=\""); 87 88 89 #line 13 "D:\dynamicweb.net\Solutions\Bluedesk\koksgroup.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\Navigation\MainNavigation.cshtml" 90 Write(node.Name); 91 92 93 #line default 94 #line hidden 95 WriteLiteral("\""); 96 97 WriteLiteral(" class=\"mainmenu__label\""); 98 99 WriteLiteral(">"); 100 101 102 #line 13 "D:\dynamicweb.net\Solutions\Bluedesk\koksgroup.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\Navigation\MainNavigation.cshtml" 103 Write(node.Name); 104 105 106 #line default 107 #line hidden 108 WriteLiteral("</span>\r\n </a>\r\n </li>\r\n"); 109 110 111 #line 16 "D:\dynamicweb.net\Solutions\Bluedesk\koksgroup.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\Navigation\MainNavigation.cshtml" 112 } 113 114 115 #line default 116 #line hidden 117 WriteLiteral("\r\n </ul>\r\n</div>\r\n"); 118 119 } 120 } 121 } 122 1 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.Navigation.NavigationTreeViewModel> 2 @using Dynamicweb; 3 4 <div class="mainmenu__list-container"> 5 <ul class="mainmenu__list h-full"> 6 7 @foreach (var node in Model.Nodes.Where(n => n.Clickable)) 8 { 9 string activeClass = node.IsActive ? "mainmenu__link--active" : ""; 10 11 <li class="mainmenu__item"> 12 <a href="@node.Link" class="mainmenu__link @activeClass"> 13 <span data-text="@node.Name" class="mainmenu__label">@node.Name</span> 14 </a> 15 </li> 16 } 17 18 </ul> 19 </div> 20