Error compiling template "Designs/Swift/Paragraph/Base_Graphic.cshtml" Line 34: The name 'layout' does not exist in the current context Line 42: 'RazorTemplateModel' does not contain a definition for 'Item' and no accessible extension method 'Item' accepting a first argument of type 'RazorTemplateModel' could be found (are you missing a using directive or an assembly reference?) Line 55: The name 'RenderPartial' does not exist in the current context Line 55: 'RazorTemplateModel' does not contain a definition for 'Item' and no accessible extension method 'Item' accepting a first argument of type 'RazorTemplateModel' could be found (are you missing a using directive or an assembly reference?)
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_333ee9dff26840789afe137957fc7b38 : Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> { 18 19 #line hidden 20 21 public RazorEngine_333ee9dff26840789afe137957fc7b38() { 22 } 23 24 public override void Execute() { 25 WriteLiteral("<div"); 26 27 WriteLiteral(" class=\"p-graphic-container mb-3 col flex-grow-0 pe-0\""); 28 29 WriteLiteral(">\r\n\t<div"); 30 31 WriteAttribute("class", Tuple.Create(" class=\"", 66), Tuple.Create("\"", 179) 32 33 #line 2 "E:\Solutions\dalgas\Files\Templates\Designs\Swift\Paragraph\Base_Graphic.cshtml" 34 , Tuple.Create(Tuple.Create("", 74), Tuple.Create<System.Object, System.Int32>(layout 35 36 #line default 37 #line hidden 38 , 74), false) 39 , Tuple.Create(Tuple.Create(" ", 83), Tuple.Create("graphic-size-", 84), true) 40 41 #line 2 "E:\Solutions\dalgas\Files\Templates\Designs\Swift\Paragraph\Base_Graphic.cshtml" 42 , Tuple.Create(Tuple.Create("", 97), Tuple.Create<System.Object, System.Int32>(Model.Item.GetItem("Paragraph_Media").GetItem("Graphic").GetString("GraphicSize") 43 44 #line default 45 #line hidden 46 , 97), false) 47 ); 48 49 WriteLiteral(">\r\n"); 50 51 WriteLiteral("\t\t"); 52 53 54 #line 3 "E:\Solutions\dalgas\Files\Templates\Designs\Swift\Paragraph\Base_Graphic.cshtml" 55 Write(RenderPartial("Components/Image.cshtml", Model.Item?.GetItem("Paragraph_Media")?.GetItem("Graphic")?.GetFile("Image") ?? new Dynamicweb.Frontend.FileViewModel())); 56 57 58 #line default 59 #line hidden 60 WriteLiteral("\r\n\t</div>\r\n</div>\r\n"); 61 62 } 63 } 64 } 65
1 <div class="p-graphic-container mb-3 col flex-grow-0 pe-0"> 2 <div class="@(layout) graphic-size-@Model.Item.GetItem("Paragraph_Media").GetItem("Graphic").GetString("GraphicSize")"> 3 @RenderPartial("Components/Image.cshtml", Model.Item?.GetItem("Paragraph_Media")?.GetItem("Graphic")?.GetFile("Image") ?? new Dynamicweb.Frontend.FileViewModel()) 4 </div> 5 </div> 6
Error compiling template "Designs/Swift/Paragraph/Base_Graphic.cshtml" Line 34: The name 'layout' does not exist in the current context Line 42: 'RazorTemplateModel' does not contain a definition for 'Item' and no accessible extension method 'Item' accepting a first argument of type 'RazorTemplateModel' could be found (are you missing a using directive or an assembly reference?) Line 55: The name 'RenderPartial' does not exist in the current context Line 55: 'RazorTemplateModel' does not contain a definition for 'Item' and no accessible extension method 'Item' accepting a first argument of type 'RazorTemplateModel' could be found (are you missing a using directive or an assembly reference?)
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_35e5c2afbf8644e2afd150ef7f2713a3 : Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> { 18 19 #line hidden 20 21 public RazorEngine_35e5c2afbf8644e2afd150ef7f2713a3() { 22 } 23 24 public override void Execute() { 25 WriteLiteral("<div"); 26 27 WriteLiteral(" class=\"p-graphic-container mb-3 col flex-grow-0 pe-0\""); 28 29 WriteLiteral(">\r\n\t<div"); 30 31 WriteAttribute("class", Tuple.Create(" class=\"", 66), Tuple.Create("\"", 179) 32 33 #line 2 "E:\Solutions\dalgas\Files\Templates\Designs\Swift\Paragraph\Base_Graphic.cshtml" 34 , Tuple.Create(Tuple.Create("", 74), Tuple.Create<System.Object, System.Int32>(layout 35 36 #line default 37 #line hidden 38 , 74), false) 39 , Tuple.Create(Tuple.Create(" ", 83), Tuple.Create("graphic-size-", 84), true) 40 41 #line 2 "E:\Solutions\dalgas\Files\Templates\Designs\Swift\Paragraph\Base_Graphic.cshtml" 42 , Tuple.Create(Tuple.Create("", 97), Tuple.Create<System.Object, System.Int32>(Model.Item.GetItem("Paragraph_Media").GetItem("Graphic").GetString("GraphicSize") 43 44 #line default 45 #line hidden 46 , 97), false) 47 ); 48 49 WriteLiteral(">\r\n"); 50 51 WriteLiteral("\t\t"); 52 53 54 #line 3 "E:\Solutions\dalgas\Files\Templates\Designs\Swift\Paragraph\Base_Graphic.cshtml" 55 Write(RenderPartial("Components/Image.cshtml", Model.Item?.GetItem("Paragraph_Media")?.GetItem("Graphic")?.GetFile("Image") ?? new Dynamicweb.Frontend.FileViewModel())); 56 57 58 #line default 59 #line hidden 60 WriteLiteral("\r\n\t</div>\r\n</div>\r\n"); 61 62 } 63 } 64 } 65
1 <div class="p-graphic-container mb-3 col flex-grow-0 pe-0"> 2 <div class="@(layout) graphic-size-@Model.Item.GetItem("Paragraph_Media").GetItem("Graphic").GetString("GraphicSize")"> 3 @RenderPartial("Components/Image.cshtml", Model.Item?.GetItem("Paragraph_Media")?.GetItem("Graphic")?.GetFile("Image") ?? new Dynamicweb.Frontend.FileViewModel()) 4 </div> 5 </div> 6
Error compiling template "Designs/Swift/Paragraph/Base_Graphic.cshtml" Line 34: The name 'layout' does not exist in the current context Line 42: 'RazorTemplateModel' does not contain a definition for 'Item' and no accessible extension method 'Item' accepting a first argument of type 'RazorTemplateModel' could be found (are you missing a using directive or an assembly reference?) Line 55: The name 'RenderPartial' does not exist in the current context Line 55: 'RazorTemplateModel' does not contain a definition for 'Item' and no accessible extension method 'Item' accepting a first argument of type 'RazorTemplateModel' could be found (are you missing a using directive or an assembly reference?)
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_d5392b945f044588be15008cbdd59e5c : Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> { 18 19 #line hidden 20 21 public RazorEngine_d5392b945f044588be15008cbdd59e5c() { 22 } 23 24 public override void Execute() { 25 WriteLiteral("<div"); 26 27 WriteLiteral(" class=\"p-graphic-container mb-3 col flex-grow-0 pe-0\""); 28 29 WriteLiteral(">\r\n\t<div"); 30 31 WriteAttribute("class", Tuple.Create(" class=\"", 66), Tuple.Create("\"", 179) 32 33 #line 2 "E:\Solutions\dalgas\Files\Templates\Designs\Swift\Paragraph\Base_Graphic.cshtml" 34 , Tuple.Create(Tuple.Create("", 74), Tuple.Create<System.Object, System.Int32>(layout 35 36 #line default 37 #line hidden 38 , 74), false) 39 , Tuple.Create(Tuple.Create(" ", 83), Tuple.Create("graphic-size-", 84), true) 40 41 #line 2 "E:\Solutions\dalgas\Files\Templates\Designs\Swift\Paragraph\Base_Graphic.cshtml" 42 , Tuple.Create(Tuple.Create("", 97), Tuple.Create<System.Object, System.Int32>(Model.Item.GetItem("Paragraph_Media").GetItem("Graphic").GetString("GraphicSize") 43 44 #line default 45 #line hidden 46 , 97), false) 47 ); 48 49 WriteLiteral(">\r\n"); 50 51 WriteLiteral("\t\t"); 52 53 54 #line 3 "E:\Solutions\dalgas\Files\Templates\Designs\Swift\Paragraph\Base_Graphic.cshtml" 55 Write(RenderPartial("Components/Image.cshtml", Model.Item?.GetItem("Paragraph_Media")?.GetItem("Graphic")?.GetFile("Image") ?? new Dynamicweb.Frontend.FileViewModel())); 56 57 58 #line default 59 #line hidden 60 WriteLiteral("\r\n\t</div>\r\n</div>\r\n"); 61 62 } 63 } 64 } 65
1 <div class="p-graphic-container mb-3 col flex-grow-0 pe-0"> 2 <div class="@(layout) graphic-size-@Model.Item.GetItem("Paragraph_Media").GetItem("Graphic").GetString("GraphicSize")"> 3 @RenderPartial("Components/Image.cshtml", Model.Item?.GetItem("Paragraph_Media")?.GetItem("Graphic")?.GetFile("Image") ?? new Dynamicweb.Frontend.FileViewModel()) 4 </div> 5 </div> 6