Error executing template "Designs/Indura/Paragraph/Slider.cshtml" System.NullReferenceException: Object reference not set to an instance of an object. at CompiledRazorTemplates.Dynamic.RazorEngine_655eca32039e4e3b9fbb58a3a25989c5.Execute() in C:\Dynamicweb\staging.indura.dk.old\Files\Templates\Designs\Indura\Paragraph\Slider.cshtml:line 11 at RazorEngine.Templating.TemplateBase.RazorEngine.Templating.ITemplate.Run(ExecuteContext context, TextWriter reader) at RazorEngine.Templating.RazorEngineService.RunCompile(ITemplateKey key, TextWriter writer, Type modelType, Object model, DynamicViewBag viewBag) at RazorEngine.Templating.RazorEngineServiceExtensions.<>c__DisplayClass16_0.b__0(TextWriter writer) at RazorEngine.Templating.RazorEngineServiceExtensions.WithWriter(Action`1 withWriter) at Dynamicweb.Rendering.Template.RenderRazorTemplate()
1 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.ParagraphViewModel> 2 3 <div class="slider" data-slideout-ignore> 4 <div> 5 <div class="container"> 6 <h2>@Model.Item.GetString("Overskrift")</h2> 7 <p>@Model.Item.GetString("Underoverskrift")</p> 8 </div> 9 10 <div class="owl-carousel owl-theme owl-drag"> 11 @foreach (var item in Model.Item.GetItems("SliderElementer")) 12 { 13 string image = item.GetFile("Billede") != null ? item.GetFile("Billede").Path : ""; 14 15 string imageUrl = ""; 16 17 if (image != null) 18 { 19 imageUrl = VestjyskMarketing.Helpers.ImageHelper.ResizeImage(image, 480, 230); 20 } 21 22 <div> 23 <picture> 24 <img src="@imageUrl" /> 25 </picture> 26 <h2>@item.GetString("Overskrift")</h2> 27 <p>@item.GetString("Tekst")</p> 28 </div> 29 30 } 31 32 </div> 33 </div> 34 35 </div> 36 37
With more than 30 years' experience, INDURA is an extremely well-established company. We are experts in fittings, flanges and related products.
Fittings and flanges are often invisible parts – but also elements that make an installation function precisely as it should. Quality is crucial. But it is equally important that you receive good service and flawless deliveries. INDURA always delivers quality – fast, precise and at the agreed price.
Day-to-day shipping in Denmark and abroad in a few days. We can resolve almost any task. We stock more that 9000 item numbers. If this doesn't match your need, we will find a solution anyway. You can always do business with us – no matter the size of your order.