Error executing template "Designs/bleau-solutionset/_parsed/left-nav-subpage.parsed.cshtml"
System.NullReferenceException: Object reference not set to an instance of an object.
   at CompiledRazorTemplates.Dynamic.RazorEngine_11274dccded948fab085fe08f14aa987.Execute() in D:\Dynamicweb.Net\www.gladsaxe.dk (DW9.x)\Files\Templates\Designs\bleau-solutionset\_parsed\left-nav-subpage.parsed.cshtml:line 12
   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 RazorTemplateBase<RazorTemplateModel<Template>> 2 @using Dynamicweb.Rendering 3 4 <!DOCTYPE html> 5 <html lang="@Pageview.Area.CultureInfo.TwoLetterISOLanguageName"> 6 <head> 7 <meta charset="utf-8"> 8 <meta name="viewport" content="width=device-width, initial-scale = 1.0"> 9 <meta name="google-site-verification" content="V3fEHGr3Eb00bLHm3OHAZ8D3vh-ZqHn0ioU_wxxNMGs"> 10 11 @if (!string.IsNullOrEmpty(GetString("Item.Page.Editor"))) 12 { 13 <meta name="author" content='@(!string.IsNullOrEmpty(GetString("Item.Page.Editor")) ? Dynamicweb.Security.UserManagement.User.GetUserByID(Convert.ToInt32(GetValue("Item.Page.Editor"))).Name : "")'> 14 } 15 16 <title>@GetValue("Title")</title> 17 @GetValue("MetaTags") 18 @GetValue("CopyRightNotice") 19 20 @{ 21 var csslink = "/Files/Templates/Designs/bleau-solutionset/assets/stylesheets/Subsites/Less/bleau-solutionset_" + @Pageview.Area.ID + ".min.css?ticks=" + @GetDate("DwPageUpdatedDate").Ticks; 22 } 23 @if (@Pageview.Area.ID == 1) 24 { 25 <link rel="stylesheet" href="/Files/Templates/Designs/bleau-solutionset/assets/stylesheets/bleau-styles.min.css?vs=15112019" media="screen"> 26 } 27 else 28 { 29 <link rel="stylesheet" href="@csslink" media="screen"> 30 } 31 <link rel="stylesheet" href="/Files/Templates/Designs/bleau-solutionset/assets/stylesheets/print.min.css" media="print"> 32 <script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script> 33 <script type="text/javascript" src="/Files/Templates/Designs/bleau-solutionset/assets/javascripts/svg-inject.min.js"></script> 34 <script type="text/javascript" src="//webkort.gladsaxe.dk/clientapi/minimap2/mmloader.js" charset="iso-8859-1"></script> 35 36 @RenderSnippet("StyleSheetHead") 37 @RenderSnippet("StyleSheet") 38 @RenderSnippet("standardModulesCSS") 39 40 @if (!string.IsNullOrEmpty(GetString("DwNavigation(topMenu)"))) 41 { 42 <link href='@GetString("Item.Area.Custom_CSS_Url")' rel="stylesheet"> 43 } 44 45 @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.GTMID"))) 46 { 47 <!-- Google Tag Manager --> 48 <script> 49 (function (w, d, s, l, i) { 50 w[l] = w[l] || []; w[l].push({ 51 'gtm.start': 52 new Date().getTime(), event: 'gtm.js' 53 }); var f = d.getElementsByTagName(s)[0], 54 j = d.createElement(s), dl = l != 'dataLayer' ? '&l=' + l : ''; j.async = true; j.src = 55 'https://www.googletagmanager.com/gtm.js?id=' + i + dl; f.parentNode.insertBefore(j, f); 56 })(window, document, 'script', 'dataLayer', '@GetString("Item.Area.GTMID")');</script> 57 <!-- End Google Tag Manager --> 58 } 59 60 <link rel="shortcut icon" href='/Admin/Public/GetImage.ashx?Image=@GetString("Item.Area.Favicon")&amp;Width=16&amp;Height=16&amp;Crop=5&amp;format=png'> 61 <link rel="apple-touch-icon" href='/Admin/Public/GetImage.ashx?Image=@GetString("Item.Area.Apple_touch_icon")&amp;Width=16&amp;Height=16&amp;Crop=5&amp;format=png'> 62 63 <!-- www.Cludo.com search start CSS --> 64 <link href="//customer.cludo.com/assets/2539/11262/cludo-search.min.css" type="text/css" rel="stylesheet"> 65 <!-- www.Cludo.com search end CSS --> 66 @GetValue("Stylesheets") 67 @GetValue("Javascripts") 68 </head> 69 @{ 70 71 var bodyclass = ""; 72 string Cpage = GetString("DwPageName"); 73 74 if (Cpage.Contains("Forside")) 75 { 76 bodyclass = "frontpage "; 77 } 78 bodyclass += "purple"; 79 80 bodyclass = bodyclass.Trim(); 81 } 82 <body class="@bodyclass"> 83 84 @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.GTMID"))) 85 { 86 <!-- Google Tag Manager (noscript) --> 87 <noscript><iframe src='https://www.googletagmanager.com/ns.html?id=@GetString("Item.Area.GTMID")' height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> 88 <!-- End Google Tag Manager (noscript) --> 89 } 90 <div class="body-wrapper"> 91 @inherits RazorTemplateBase<RazorTemplateModel<Template>> 92 @using Dynamicweb.Rendering; 93 @using System.Collections; 94 @using System.Globalization; 95 96 <header> 97 <a class="skip-main" role="navigation" aria-labelledby="Hovedindhold" href="#Hovedindhold">Skip til hoved indholdet</a> 98 <section class="service-navigation" style='display:@(String.IsNullOrEmpty(System.Web.HttpContext.Current.Request["ispdf"]) ? "block" : "none")' aria-label="service menu"> 99 <nav aria-label="Service menu"> 100 <ul class="container text-right hidden-print"> 101 @GetValue("DwNavigation(servicenavigation)") 102 <li class=""><a href="http://www.adgangforalle.dk/" title="Audio" target="_blank" class="read-more-icon" rel="noreferrer">Læs op</a></li> 103 <li class=""><a href="javascript:void(0);" title="print" id="printicon" class="print-icon">Print</a></li> 104 </ul> 105 </nav> 106 </section> 107 <div class="navbar hidden-print" role="navigation" aria-label="Hoved menu" style='display:@(String.IsNullOrEmpty(System.Web.HttpContext.Current.Request["ispdf"]) ? "block" : "none")'> 108 <div class="container top-nav" id="nav-wrapper"> 109 <button class="navbar-toggle collapsed" aria-expanded="false" aria-label="Mobile Menu" data-target="#mobile-menu" data-toggle="collapse" type="button"> 110 </button> 111 <nav aria-label="Mobile Menu"> 112 @GetValue("DwNavigation(mobilemenu)") 113 </nav> 114 <div class="navbar-header col-xs-6 col-md-4"> 115 116 @if (!string.IsNullOrWhiteSpace(GetGlobalValue("Global:Device.IsDesktop")) || !string.IsNullOrWhiteSpace(GetGlobalValue("Global:Device.IsTablet"))) 117 { 118 if (!string.IsNullOrWhiteSpace(GetString("Item.Area.Logo_Image"))) 119 { 120 <a class="navbar-brand" href='/Default.aspx?AreaID=@GetString("DwAreaID")' aria-label='@GetString("Item.Area.NameOrganisation")'> 121 <img src='@GetString("Item.Area.Logo_Image")' alt='@Translate("Sitename", "Bleauprint government")' onload="SVGInject(this)"> 122 </a> 123 } 124 } 125 else 126 { 127 if (!string.IsNullOrWhiteSpace(GetString("Item.Area.LogoMobile"))) 128 { 129 <a class="navbar-brand" href='/Default.aspx?AreaID=@GetString("DwAreaID")' aria-label='@Translate("Sitename", "Bleauprint government")'> 130 <img src='@GetString("Item.Area.LogoMobile")' alt='@Translate("Sitename", "Bleauprint government")' onload="SVGInject(this)"> 131 </a> 132 } 133 else 134 { 135 <a class="navbar-brand logo-image" href="/" title=""></a> 136 } 137 } 138 </div> 139 140 <nav class="col-sm-5 col-md-7 nav-top hidden-print" aria-label="Desktop Menu"> 141 @GetValue("DwNavigation(menu)") 142 </nav><!-- /.nav-collapse --> 143 144 @inherits RazorTemplateBase< RazorTemplateModel < Template > > 145 @using Dynamicweb.Rendering 146 147 <div class="search-nav pull-right col-xs-5 col-md-1 search-navFull"> 148 <a href="" class="collapsed" title="Søg"></a> 149 </div> 150 <div id="search-boxTop" class="search-drop search-form"> 151 @SnippetStart("StyleSheetHead") 152 @if (@Pageview.Area.ID == 1) 153 { 154 <link type="text/css" href="/Files/Templates/Designs/bleau-solutionset/assets/stylesheets/weightedSearch.min.css" rel="stylesheet"> 155 } 156 <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.5.0/css/all.css" integrity="sha384-B4dIYHKNBt8Bc12p+WXckhzcICo0wtJAoU8YZTY5qE0Id1GSseTk6S+L3BlXeVIU" crossorigin="anonymous"> 157 @SnippetEnd("StyleSheetHead") 158 159 @*<form action="/Default.aspx" accept-charset="utf-8" id="SearchFormTop"> 160 <input type="hidden" name="ID" value='@GetValue("Item.Area.Search_Result")'> 161 <div class="search-area"> 162 <input aria-label="Topmenu søge felt" id="searchSubmit" autocomplete="off" size="10" spellcheck="false" dir="ltr" class="search-input" placeholder='@Translate("search", "Skriv her hvad du s&oslash;ger...")' data-error='@Translate("searchText", "S&oslash;g p&aring; sitet")' type="text" name="q" value='@GetValue("DwSearchPhrase")'> 163 <input type="submit" value="Søg" class="search-button" title="Søg"> 164 </div> 165 </form>*@ 166 167 168 <form accept-charset="utf-8" id="SearchFormTop"> 169 <div class="search-area" id="CludoSearchFormTop" role="search"> 170 <input type="hidden" name="ID" value='@GetValue("Item.Area.Search_Result")'> 171 <input aria-label="Topmenu søge felt" id="searchSubmit" autocomplete="off" size="10" spellcheck="false" dir="ltr" class="search-input" placeholder='@Translate("search", "Skriv her hvad du s&oslash;ger...")' data-error='S&oslash;g p&aring; sitet' type="text" name="q" value=""> 172 <input type="submit" value="Søg" class="search-button" title="Søg"> 173 </div> 174 </form> 175 </div> 176 177 </div><!-- /.container --> 178 </div><!-- /.navbar --> 179 </header> 180 @SnippetStart("JavaScriptBottom") 181 <script src="/Files/Templates/Designs/bleau-solutionset/assets/javascripts/livesearch.js" type="text/javascript"></script> 182 @SnippetEnd("JavaScriptBottom") 183 184 <div class="navbar visible-print" role="banner"> 185 <div class="container top-nav"> 186 <div class="navbar-header col-xs-6 col-md-4"> 187 <div class="visible-print"> 188 <div class="navbar-brand"> 189 @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.Logo_Image")) && !string.IsNullOrWhiteSpace(GetGlobalValue("Global:Device.IsMobile"))) 190 { 191 <img src='@GetString("Item.Area.Logo_Image")' alt='@Translate("Sitename", "Bleauprint government")' aria-hidden="true" onload="SVGInject(this)"> 192 193 } 194 </div> 195 </div> 196 </div> 197 </div> 198 </div> 199 @{ 200 string Tpage = GetGlobalValue("Global:Pageview.LayoutTemplate"); 201 if (Tpage != ("frontpage.cshtml")) 202 { 203 <div class="selvbetjening-wrapper selvbetjening-mobil hidden-print" role="navigation" aria-label="selvbetjeningsmenu"> 204 <!-- WCAG ændring --> 205 206 <button class="selv-btn collapsed" aria-controls="Selvbetjeningsmenu" aria-expanded="false" id="selvbetjening-btn" title='@Translate("SelvbetjeningText", "Selvbetjening")'>@Translate("Selvbetjening", "Selvbetjening")</button> 207 208 <div class="selvbetjening-links clearfix collapse dont-collapse-sm" id="Selvbetjeningsmenu"> 209 210 <!-- <ul class="dwnavigation" title="Selvbetjening" id="selfservice-green" data-settings="parenttag:Selvbetjening;endlevel:2;expandmode:Path;template:selfserviceNavigation.xslt;"></ul> --> 211 212 <ul title="Selvbetjening" id="selfservice-green"> 213 @{ 214 215 var entriesList = GetLoop("Item.Area.Entries_Item_List"); 216 217 foreach (var e in entriesList) 218 { 219 var title = e.GetString("Item.Area.Entries_Item_List.Title.Value"); 220 var type = e.GetString("Item.Area.Entries_Item_List.Type.Value"); 221 var href = e.GetString("Item.Area.Entries_Item_List.Link_Url.Value"); 222 223 <li> 224 <a href="@href" target="_self" title="@title" tabindex="-1"> 225 <img class="svg-inject" src="@type" alt="Ikon @title" onload="SVGInject(this)"> 226 @title 227 </a> 228 </li> 229 } 230 } 231 </ul> 232 233 </div> 234 </div> 235 } 236 237 } 238 <div id="Hovedindhold" role="main"> 239 240 241 242 243 244 <!--Breadcrumb grey line--> 245 <div class="grey-box leftSidebar"> 246 247 <!--Breadcrumb--> 248 <div class="container leftSidebar-subpage hidden-print"> 249 <div class="breadcrumb text-right col-xs-12"> 250 <nav aria-label="Breadcrumb navigation"> 251 @GetValue("DwNavigation(Breadcrumb)") 252 </nav> 253 </div> 254 </div> 255 </div> 256 257 <!--Left Sidebar--> 258 <div class="leftSidebar"> 259 <div class="container leftSidebar-subpage"> 260 261 <!--Left Sidebar menu--> 262 <div class="col-xs-12 col-sm-4 submenu-list hidden-xs hidden-print" id="leftMenu" role="navigation" aria-label="Venstre undermenu"> 263 @GetValue("DwNavigation(leftnav)") 264 </div> 265 <div class="col-xs-12 col-sm-8 page-title"> 266 <h1 class="title" id="pageTitle">@GetString("DwPageName")</h1> 267 <section aria-label="hoved indhold"> 268 <div class="main-content" id="rightColumn">@GetValue("DwContent(rightColumn)")</div> 269 </section> 270 </div> 271 </div> 272 </div> 273 274 <!--Purple & White Bottom Boxes--> 275 276 <div class="row full-width" id="bottom-row-fluid">@GetValue("DwContent(bottomrowfluid)")</div> 277 278 279 280 <!--Grey Box with custom mobile submenu--> 281 <div class="grey-box leftSidebar hidden-print"> 282 <div class="container leftSidebar-subpage"> 283 <div class="col-xs-12 hidden-sm hidden-md hidden-lg clearfix mobile-submenu" id="GreyBox"> 284 @GetValue("Include(navigation/MobileSubmenu.cshtml)") 285 </div> 286 </div> 287 </div> 288 </div> 289 290 </div> 291 <footer class="row"> 292 <section class="container footer-wrapper" aria-label="footer"> 293 <div class="row" id="footerSections" role="contentinfo"> 294 <div class="col-xs-12 col-sm-4 col-md-3 quick-links hidden-print"> 295 <h1>@GetString("Item.Area.Tekster.Kolonne_1")</h1> 296 @GetValue("DwNavigation(quicklinks)") 297 </div> 298 <div class="col-xs-12 col-sm-4 col-md-3 adress-box vcard"> 299 <span class="fn hidden"> 300 <span class="given-name">@GetString("Item.Area.NameOrganisation")</span> 301 <span class="additional-name"></span> 302 <span class="family-name"></span> 303 </span> 304 <div class="fn org"><h1>@GetString("Item.Area.Tekster.Kolonne_2")</h1></div> 305 <div class="adress"> 306 <div class="street-address">@GetString("Item.Area.StreetAddress")</div> 307 308 @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.PostalCode")) || !string.IsNullOrWhiteSpace(GetString("Item.Area.Lacation"))) 309 { 310 <div class="adr"><span class="postal-code">@GetString("Item.Area.PostalCode")</span> <span class="locality">@GetString("Item.Area.Lacation")</span></div> 311 } 312 313 @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.Telefon"))) 314 { 315 <div>@Translate("Telefon", "Telefon"): <span class="tel">@GetString("Item.Area.Telefon")</span> </div> 316 } 317 318 @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.Fax"))) 319 { 320 <div class="tel"> <span class="type">@Translate("Fax", "Fax"): </span><span class="value">@GetString("Item.Area.Fax")</span> </div> 321 } 322 323 @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.CVR"))) 324 { 325 <div class="tel"> <span class="type">@Translate("CVR", "CVR"): </span><span class="value">@GetString("Item.Area.CVR")</span> </div> 326 } 327 328 @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.Email"))) 329 { 330 <a class="email" href='mailto:@GetValue("Item.Area.Email")'>@GetValue("Item.Area.Email")</a> 331 } 332 </div> 333 </div> 334 <div class="col-xs-12 col-sm-4 col-md-3 col-md-offset-3 work-time oh-day" itemscope="" itemtype="http://schema.org/CivicStructure"> 335 <h1 itemprop="name">@GetString("Item.Area.Tekster.Kolonne_4")</h1> 336 <ul class="oh-highlight-day"> 337 @foreach (var item in GetLoop("Item.Area.OpeningHours")) 338 { 339 <li><meta itemprop="openingHours" content='@item.GetValue("Item.Area.OpeningHours.Days")-@item.GetValue("Item.Area.OpeningHours.OpenHour")'>@item.GetValue("Item.Area.OpeningHours.Days")<span>@item.GetValue("Item.Area.OpeningHours.OpenHour")</span></li> 340 341 } 342 </ul> 343 344 </div> 345 </div> 346 </section> 347 </footer> 348 <div class="bgr-opacity"></div> 349 <script type="text/javascript" src="/Files/Templates/Designs/bleau-solutionset/assets/javascripts/jquery.dotdotdot.min.js"></script> 350 <!-- <script type="text/javascript" src="assets/javascripts/infinityScroll.min.js"></script> --> 351 <script type="text/javascript" src="/Files/Templates/Designs/bleau-solutionset/assets/vendor/bootstrap/js/bootstrap.min.js"></script> 352 <script type="text/javascript" src="/Files/Templates/Designs/bleau-solutionset/assets/javascripts/main.min.js"></script> 353 354 @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.Google_Analytics_ID"))) 355 { 356 <text> 357 <script> 358 var _gaq = [['_setAccount', '@GetValue("Item.Area.Google_Analytics_ID")'], ['_trackPageview']]; 359 (function(d, t) { 360 var g = d.createElement(t), 361 s = d.getElementsByTagName(t)[0]; 362 g.async = true; 363 g.src = '//www.google-analytics.com/ga.js'; 364 s.parentNode.insertBefore(g, s); 365 })(document, 'script'); 366 </script> 367 </text> 368 369 } 370 @RenderSnippet("JavaScriptBottom") 371 372 <!-- www.Cludo.com search start JS --> 373 <!--[if lte IE 9]> 374 <script src="https://api.cludo.com/scripts/xdomain.js" slave="https://api.cludo.com/proxy.html"></script> 375 <![endif]--> 376 <!-- www.Cludo.com search end JS --> 377 <!-- www.Cludo.com Search body init script start --> 378 <script type="text/javascript" src="//customer.cludo.com/scripts/bundles/search-script.min.js"></script> 379 <script> 380 var CludoSearch; 381 (function () { 382 var cludoSettings = { 383 customerId: 2539, 384 engineId: 11262, 385 searchUrl: "/kommunen/soegeresultat", 386 searchInputs: ["CludoSearchFormTop", "cludo-search-content-form", "SearchForm"], 387 initSearchBoxText: "", 388 loading: "<img src='//customer.cludo.com/img/loading.gif' alt='Loading' class='loading' role='progressbar' />", 389 endlessScroll: { stopAfterPage: 3, resultsPerPage: 10, bottomOffset: 700 } 390 }; 391 CludoSearch = new Cludo(cludoSettings); 392 CludoSearch.translateProvider.translations["da"]["backToTop"] = "<i class='fa fa-chevron-up'></i>"; 393 CludoSearch.translateProvider.translations["da"]["load_more"] = "Vis flere"; 394 CludoSearch.translateProvider.translations["da"]["your_search_on"] = "Søgningen "; 395 CludoSearch.init(); 396 })(); 397 </script> 398 <!-- www.Cludo.com Search body init script start --> 399 400 <script type="text/javascript"> 401 /*<![CDATA[*/ 402 (function() { 403 var sz = document.createElement('script'); sz.type = 'text/javascript'; sz.async = true; 404 sz.src = '//siteimproveanalytics.com/js/siteanalyze_239454.js'; 405 var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(sz, s); 406 })(); 407 /*]]>*/ 408 </script> 409 410 <script type="text/javascript" data-kommune="gladsaxe" src="https://prokomresources.prokomcdn.no/client-grunt/bot/kari.js"></script> 411 </body> 412 </html>