Sidste nyt fra Capio


Error compiling template "ItemPublisher/Details/Nyheder_Details.cshtml"
Line 68: The name 'i' does not exist in the current context
Line 168: The name 'i' does not exist in the current context

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_803ab5c5c79f4df2be704576a1ff9725 : Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> { 18 19 #line hidden 20 21 public RazorEngine_803ab5c5c79f4df2be704576a1ff9725() { 22 } 23 24 public override void Execute() { 25 WriteLiteral("<div"); 26 27 WriteLiteral(" class=\"container mt-5 mb-5\""); 28 29 WriteLiteral(">\r\n <div"); 30 31 WriteLiteral(" class=\"row details\""); 32 33 WriteLiteral(">\r\n\r\n"); 34 35 36 #line 4 "D:\dynamicweb.net\Solutions\FS2\capio.dw9.dynamicweb-cms.com\Files\Templates\ItemPublisher\Details\Nyheder_Details.cshtml" 37 38 39 #line default 40 #line hidden 41 42 #line 4 "D:\dynamicweb.net\Solutions\FS2\capio.dw9.dynamicweb-cms.com\Files\Templates\ItemPublisher\Details\Nyheder_Details.cshtml" 43 if (!string.IsNullOrWhiteSpace(GetString("ItemPublisher:Item.Billede"))) { 44 45 46 47 #line default 48 #line hidden 49 WriteLiteral(" <div"); 50 51 WriteLiteral(" class=\"col-md-5\""); 52 53 WriteLiteral(">\r\n <img"); 54 55 WriteAttribute("src", Tuple.Create(" src=\"", 186), Tuple.Create("\"", 231) 56 57 #line 7 "D:\dynamicweb.net\Solutions\FS2\capio.dw9.dynamicweb-cms.com\Files\Templates\ItemPublisher\Details\Nyheder_Details.cshtml" 58 , Tuple.Create(Tuple.Create("", 192), Tuple.Create<System.Object, System.Int32>(GetValue("ItemPublisher:Item.Billede") 59 60 #line default 61 #line hidden 62 , 192), false) 63 ); 64 65 WriteAttribute("alt", Tuple.Create(" alt=\'", 232), Tuple.Create("\'", 279) 66 67 #line 7 "D:\dynamicweb.net\Solutions\FS2\capio.dw9.dynamicweb-cms.com\Files\Templates\ItemPublisher\Details\Nyheder_Details.cshtml" 68 , Tuple.Create(Tuple.Create("", 238), Tuple.Create<System.Object, System.Int32>(i.GetValue("ItemPublisher:Item.AltText") 69 70 #line default 71 #line hidden 72 , 238), false) 73 ); 74 75 WriteLiteral(" class=\"img-fluid\""); 76 77 WriteLiteral(" />\r\n \r\n </div>\r\n"); 78 79 80 #line 10 "D:\dynamicweb.net\Solutions\FS2\capio.dw9.dynamicweb-cms.com\Files\Templates\ItemPublisher\Details\Nyheder_Details.cshtml" 81 82 83 84 #line default 85 #line hidden 86 WriteLiteral(" <div"); 87 88 WriteLiteral(" class=\"col-md-7\""); 89 90 WriteLiteral(">\r\n\r\n <h1>"); 91 92 93 #line 13 "D:\dynamicweb.net\Solutions\FS2\capio.dw9.dynamicweb-cms.com\Files\Templates\ItemPublisher\Details\Nyheder_Details.cshtml" 94 Write(GetValue("ItemPublisher:Item.Overskrift")); 95 96 97 #line default 98 #line hidden 99 WriteLiteral("</h1>\r\n\r\n\r\n <span"); 100 101 WriteLiteral(" class=\"post-date\""); 102 103 WriteLiteral(">Oprettet: "); 104 105 106 #line 16 "D:\dynamicweb.net\Solutions\FS2\capio.dw9.dynamicweb-cms.com\Files\Templates\ItemPublisher\Details\Nyheder_Details.cshtml" 107 Write(GetDate("ItemPublisher:Item.Dato").ToShortDateString()); 108 109 110 #line default 111 #line hidden 112 WriteLiteral("</span>\r\n\r\n"); 113 114 WriteLiteral(" "); 115 116 117 #line 18 "D:\dynamicweb.net\Solutions\FS2\capio.dw9.dynamicweb-cms.com\Files\Templates\ItemPublisher\Details\Nyheder_Details.cshtml" 118 Write(GetValue("ItemPublisher:Item.Tekst")); 119 120 121 #line default 122 #line hidden 123 WriteLiteral("\r\n\r\n <p><a"); 124 125 WriteLiteral(" class=\"back\""); 126 127 WriteLiteral(" href=\"javascript:history.back()\""); 128 129 WriteLiteral(">"); 130 131 132 #line 20 "D:\dynamicweb.net\Solutions\FS2\capio.dw9.dynamicweb-cms.com\Files\Templates\ItemPublisher\Details\Nyheder_Details.cshtml" 133 Write(Translate("Back","Tilbage")); 134 135 136 #line default 137 #line hidden 138 WriteLiteral("</a></p> \r\n\r\n </div>\r\n"); 139 140 141 #line 23 "D:\dynamicweb.net\Solutions\FS2\capio.dw9.dynamicweb-cms.com\Files\Templates\ItemPublisher\Details\Nyheder_Details.cshtml" 142 143 } else { 144 145 146 147 #line default 148 #line hidden 149 WriteLiteral(" <div"); 150 151 WriteLiteral(" class=\"col-md-12\""); 152 153 WriteLiteral(">\r\n <img"); 154 155 WriteAttribute("src", Tuple.Create(" src=\"", 747), Tuple.Create("\"", 792) 156 157 #line 27 "D:\dynamicweb.net\Solutions\FS2\capio.dw9.dynamicweb-cms.com\Files\Templates\ItemPublisher\Details\Nyheder_Details.cshtml" 158 , Tuple.Create(Tuple.Create("", 753), Tuple.Create<System.Object, System.Int32>(GetValue("ItemPublisher:Item.Billede") 159 160 #line default 161 #line hidden 162 , 753), false) 163 ); 164 165 WriteAttribute("alt", Tuple.Create(" alt=\'", 793), Tuple.Create("\'", 840) 166 167 #line 27 "D:\dynamicweb.net\Solutions\FS2\capio.dw9.dynamicweb-cms.com\Files\Templates\ItemPublisher\Details\Nyheder_Details.cshtml" 168 , Tuple.Create(Tuple.Create("", 799), Tuple.Create<System.Object, System.Int32>(i.GetValue("ItemPublisher:Item.AltText") 169 170 #line default 171 #line hidden 172 , 799), false) 173 ); 174 175 WriteLiteral(" class=\"img-fluid\""); 176 177 WriteLiteral(" />\r\n \r\n </div>\r\n"); 178 179 180 #line 30 "D:\dynamicweb.net\Solutions\FS2\capio.dw9.dynamicweb-cms.com\Files\Templates\ItemPublisher\Details\Nyheder_Details.cshtml" 181 182 183 184 #line default 185 #line hidden 186 WriteLiteral(" <div"); 187 188 WriteLiteral(" class=\"col-md-12\""); 189 190 WriteLiteral(">\r\n\r\n <h1>"); 191 192 193 #line 33 "D:\dynamicweb.net\Solutions\FS2\capio.dw9.dynamicweb-cms.com\Files\Templates\ItemPublisher\Details\Nyheder_Details.cshtml" 194 Write(GetValue("ItemPublisher:Item.Overskrift")); 195 196 197 #line default 198 #line hidden 199 WriteLiteral("</h1>\r\n\r\n\r\n <span"); 200 201 WriteLiteral(" class=\"post-date\""); 202 203 WriteLiteral(">Oprettet: "); 204 205 206 #line 36 "D:\dynamicweb.net\Solutions\FS2\capio.dw9.dynamicweb-cms.com\Files\Templates\ItemPublisher\Details\Nyheder_Details.cshtml" 207 Write(GetDate("ItemPublisher:Item.Dato").ToShortDateString()); 208 209 210 #line default 211 #line hidden 212 WriteLiteral("</span>\r\n\r\n"); 213 214 WriteLiteral(" "); 215 216 217 #line 38 "D:\dynamicweb.net\Solutions\FS2\capio.dw9.dynamicweb-cms.com\Files\Templates\ItemPublisher\Details\Nyheder_Details.cshtml" 218 Write(GetValue("ItemPublisher:Item.Tekst")); 219 220 221 #line default 222 #line hidden 223 WriteLiteral("\r\n\r\n <p><a"); 224 225 WriteLiteral(" class=\"back\""); 226 227 WriteLiteral(" href=\"javascript:history.back()\""); 228 229 WriteLiteral(">"); 230 231 232 #line 40 "D:\dynamicweb.net\Solutions\FS2\capio.dw9.dynamicweb-cms.com\Files\Templates\ItemPublisher\Details\Nyheder_Details.cshtml" 233 Write(Translate("Back","Tilbage")); 234 235 236 #line default 237 #line hidden 238 WriteLiteral("</a></p> \r\n\r\n </div>\r\n"); 239 240 241 #line 43 "D:\dynamicweb.net\Solutions\FS2\capio.dw9.dynamicweb-cms.com\Files\Templates\ItemPublisher\Details\Nyheder_Details.cshtml" 242 } 243 244 245 #line default 246 #line hidden 247 WriteLiteral(" \r\n </div>\r\n </div>\r\n\r\n\r\n\r\n \r\n"); 248 249 } 250 } 251 } 252

1 <div class="container mt-5 mb-5"> 2 <div class="row details"> 3 4 @if (!string.IsNullOrWhiteSpace(GetString("ItemPublisher:Item.Billede"))) { 5 6 <div class="col-md-5"> 7 <img src="@GetValue("ItemPublisher:Item.Billede")" alt='@i.GetValue("ItemPublisher:Item.AltText")' class="img-fluid" /> 8 9 </div> 10 11 <div class="col-md-7"> 12 13 <h1>@GetValue("ItemPublisher:Item.Overskrift")</h1> 14 15 16 <span class="post-date">Oprettet: @GetDate("ItemPublisher:Item.Dato").ToShortDateString()</span> 17 18 @GetValue("ItemPublisher:Item.Tekst") 19 20 <p><a class="back" href="javascript:history.back()">@Translate("Back","Tilbage")</a></p> 21 22 </div> 23 24 } else { 25 26 <div class="col-md-12"> 27 <img src="@GetValue("ItemPublisher:Item.Billede")" alt='@i.GetValue("ItemPublisher:Item.AltText")' class="img-fluid" /> 28 29 </div> 30 31 <div class="col-md-12"> 32 33 <h1>@GetValue("ItemPublisher:Item.Overskrift")</h1> 34 35 36 <span class="post-date">Oprettet: @GetDate("ItemPublisher:Item.Dato").ToShortDateString()</span> 37 38 @GetValue("ItemPublisher:Item.Tekst") 39 40 <p><a class="back" href="javascript:history.back()">@Translate("Back","Tilbage")</a></p> 41 42 </div> 43 } 44 45 </div> 46 </div> 47 48 49 50 51