Åbningstider denne uge

Mandag

10:00-22:00

Tirsdag

10:00-22:00

Onsdag

10:00-22:00

Torsdag

10:00-22:00

Fredag

10:00-22:00

Lørdag

10:00-22:00

Søndag

10:00-22:00

Åbningstider

Tilbud fra Café A

Pris:

Før:

Spar:

Pris:

Før:

Spar:

Pris:

Før:

Spar:

Pris:

Før:

Spar:


Error executing template "Designs/Swift/Paragraph/4Box/2.Manuel.cshtml"
System.NullReferenceException: Object reference not set to an instance of an object.
   at DSCBackend.ViewModels.BoxViewModel.FillViewModel(Page page) in D:\a\1\s\DSCBackend\ViewModels\BoxViewModel.cs:line 53
   at CompiledRazorTemplates.Dynamic.RazorEngine_d489d13ac2ac4034a8255ba1312c5aa2.Execute() in D:\dynamicweb.net\Solutions\NexusOne\DanskeShoppingcentre.cloud.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\4Box\2.Manuel.cshtml:line 23
   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.<RunCompile>b__0(TextWriter writer)
   at RazorEngine.Templating.RazorEngineServiceExtensions.WithWriter(Action`1 withWriter)
   at Dynamicweb.Rendering.RazorTemplateRenderingProvider.Render(Template template)
   at Dynamicweb.Rendering.TemplateRenderingService.Render(Template template)
   at Dynamicweb.Rendering.Template.RenderRazorTemplate()

1 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.ParagraphViewModel> 2 @using Dynamicweb.Frontend 3 @using DSCBackend.TemplateHelpers; 4 @using DSCBackend.ViewModels; 5 6 @{ var linkCollection = Model.Item.GetItems("Page_Links"); 7 var buttonLink = Model.Item.GetValue("Button_Link") as Dynamicweb.Frontend.LinkViewModel; 8 } 9 10 11 <div class="dsc-column dsc-margin-center dsc-text-align-center"> 12 <h3 class="dsc-point-name-header">@Model.Item.GetString("Headline") </h3> 13 <h4 class="dsc-point-name-subheader">@Model.Item.GetString("Subheader")</h4> 14 </div> 15 16 <div class="dsc-row dsc-justify-start dsc-mobile-slide"> 17 18 @foreach (var link in linkCollection) 19 { 20 var linkModel = link.GetValue("Link") as Dynamicweb.Frontend.LinkViewModel; 21 BoxViewModel boxModel = new BoxViewModel(); 22 var pageModel = PageHelper.GetPageById(linkModel.PageId); 23 boxModel.FillViewModel(pageModel); 24 if (!boxModel.IsVaild) 25 { 26 continue; 27 } 28 boxModel.Link = linkModel.Url; 29 <div class="dsc-column dsc-promotion-container"> 30 <a href="@boxModel.Link"> 31 <img alt="@boxModel.ImgAlt" title="@boxModel.ImgTitle" src="@boxModel.Src" /> 32 </a> 33 <div class="dsc-promotion-text-container"> 34 <a class="dsc-no-link-att" href="@boxModel.Link"> 35 <h3>@boxModel.Title</h3> 36 </a> 37 @RenderTextForManuel(boxModel.Teaser) 38 </div> 39 </div>} 40 </div> 41 42 @{ if (buttonLink != null) 43 { 44 <a style="margin-top: 20px;" class="dsc-row dsc-justify-center" href="@buttonLink.Url"> 45 <span class="dsc-hero-button1 dsc-branding-button-primary btn-primary dsc-btn-primary-colors"> 46 @Model.Item.GetValue("Button_Text") 47 </span> 48 </a> 49 50 } } 51 52 53 @helper RenderTextForManuel(string text) 54 { 55 <p class="dsc-promotion-text DSC-highlighted-link">@text</p> 56 } 57