Sort belægningsklinke

240 x 118 x 52 mm


Pris fra kr.12,35 pr. stk. Gå til produktside
RT 64 Sort belægningsklinke
Grå belægningsklinke

240 x 118 x 52 mm


Pris fra kr.10,38 pr. stk. Gå til produktside
RT 63 Grå belægningsklinke
Gul belægningsklinke

240 x 118 x 52 mm


Pris fra kr.9,98 pr. stk. Gå til produktside
RT 62 Gul belægningsklinke
Rød belægningsklinke med spil

240 x 118 x 52 mm


Pris fra kr.7,83 pr. stk. Gå til produktside
RT 61 Rød belægningsklinke med spil
Rød belægningsklinke

240 x 118 x 52 mm


Pris fra kr.7,25 pr. stk. Gå til produktside
RT 60 Rød belægningsklinke
Rød havetegl

228 x 108 x 54 mm - Med kulbrændt spil 


Pris fra kr.6,79 pr. stk. Gå til produktside
RT 30 Rød havetegl
Sort havetegl med brunt spil

228 x 108 x 54 mm - Med kulbrændt spil 


Pris fra kr.12,59 pr. stk. Gå til produktside
RT 31 Sort havetegl med brunt spil
Gul havetegl med spil

228 x 108 x 54 mm - Med kulbrændt spil 


Pris fra kr.7,70 pr. stk. Gå til produktside
RT 32 Gul havetegl med spil

8 products found Page 1 of 1
Error executing template "/Designs/randers-tegl/Paragraph/rt-2.0.product-action.cshtml"
System.NullReferenceException: Object reference not set to an instance of an object.
   at CompiledRazorTemplates.Dynamic.RazorEngine_480d61cf297b4ec8a76e6ebb59468f6a.Execute() in E:\dynamicweb.net\Solutions\randerstegl.net.dynamicweb-cms.com\files\Templates\Designs\randers-tegl\Paragraph\rt-2.0.product-action.cshtml:line 6
   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 @{ string productid = System.Web.HttpContext.Current.Request.QueryString.Get("ProductID"); Dynamicweb.Ecommerce.Products.Product p = Dynamicweb.Ecommerce.Services.Products.GetProductById(productid, "", false); string productname = p.Name; string productnumber = p.Number; string categoryName = p.Groups[0].Name.ToLower(); } @if (!GetString("Item.ExcludeProducts").Contains(productnumber)) { <div class="column-xxs-12 column-md-8 column-xxs-top-1 column-xxs-bottom-1 column-sm-top-0 column-sm-bottom-0" id='@GetString("Item.ActionID")@("-action")'><div class="wrap-inner"> @{ bool islink = false; string link = ""; if (GetString("Item.Type") == "link") { islink = true; link = GetString("Item.Link"); bool hasparameter = false; if (GetBoolean("Item.IncludeRTNumberInURL")) { link += (GetString("Item.Link").Contains("?") ? "&" : "?"); if (!string.IsNullOrWhiteSpace(GetString("Item.URLParameterName"))) { link += GetString("Item.URLParameterName") + "=" + productnumber.Replace(" ",""); } else { link += "ProductID=" + productid; } hasparameter = true; } if (GetBoolean("Item.IsVisualizationToolLink")) { string brick = p.ProductFieldValues.GetProductFieldValue("VisualizationBrick").Value.ToString(); string groove = p.ProductFieldValues.GetProductFieldValue("VisualizationGroove").Value.ToString(); string linking = p.ProductFieldValues.GetProductFieldValue("VisualizationLinking").Value.ToString(); string paving = p.ProductFieldValues.GetProductFieldValue("VisualizationPaving").Value.ToString(); string roof = p.ProductFieldValues.GetProductFieldValue("VisualizationRoof").Value.ToString(); string house = p.ProductFieldValues.GetProductFieldValue("VisualizationHouse").Value.ToString(); string windows = p.ProductFieldValues.GetProductFieldValue("VisualizationWindows").Value.ToString(); string rnd = p.ProductFieldValues.GetProductFieldValue("VisualizationRnd").Value.ToString(); string viewmode = p.ProductFieldValues.GetProductFieldValue("VisualizationViewmode").Value.ToString(); if (categoryName == "mursten") { link += "#brick=" + productnumber.Replace(" ",""); } else if (!string.IsNullOrWhiteSpace(brick)) { link += "#brick=" + brick; } else { link += "#brick=RT522"; } if (!string.IsNullOrWhiteSpace(groove)) { link += "&groove=" + groove; } if (!string.IsNullOrWhiteSpace(linking)) { link += "&linking=" + linking; } if (!string.IsNullOrWhiteSpace(paving)) { link += "&paving=" + paving; } if (categoryName == "tagsten") { link += "&roof=" + productnumber.Replace(" ","_"); } else if (!string.IsNullOrWhiteSpace(roof)) { link += "&roof=" + roof; } if (!string.IsNullOrWhiteSpace(house)) { link += "&house=" + house; } else if (categoryName == "tagsten") { link += "&house=05"; } if (!string.IsNullOrWhiteSpace(windows)) { link += "&windows=" + windows; } if (!string.IsNullOrWhiteSpace(rnd)) { link += "&rnd=" + rnd; } if (!string.IsNullOrWhiteSpace(viewmode)) { link += "&viewmode=" + viewmode; } else { link += "&viewmode=house"; } } if (GetBoolean("Item.IsTextureToolLink")) { string groove = p.ProductFieldValues.GetProductFieldValue("VisualizationGroove").Value.ToString(); string linking = p.ProductFieldValues.GetProductFieldValue("VisualizationLinking").Value.ToString(); string viewmode = p.ProductFieldValues.GetProductFieldValue("VisualizationViewmode").Value.ToString(); if (categoryName == "mursten") { link += "#brick=" + productnumber.Replace(" ",""); } else { link += "#brick=RT522"; } if (!string.IsNullOrWhiteSpace(groove)) { link += "&groove=" + groove; } if (!string.IsNullOrWhiteSpace(linking)) { link += "&linking=" + linking; } if (!string.IsNullOrWhiteSpace(viewmode)) { link += "&viewmode=" + viewmode; } else { link += "&viewmode=wall"; } } } string iconClass = GetString("Item.Icon"); iconClass = iconClass.Substring(iconClass.LastIndexOf("/") + 1); iconClass = iconClass.Replace(".svg",""); } @if (GetString("Item.Type") == "inline-form" || GetString("Item.Type") == "custom") { if (GetString("Item.Type") == "inline-form") { <a class="tablet-desktop-link" @if(!string.IsNullOrWhiteSpace(GetString("Item.LinkTitle"))) {<text>title='@GetString("Item.LinkTitle")'</text>} @if (GetBoolean("Item.IsReferenceForm") && p.ProductFieldValues.GetProductFieldValue("ShowNewReferenceTool").Value.ToString() == "False") {<text>href="mailto:@Translate("RT-2.0_Reference_mail_modtager")?subject=@productnumber - @Translate("RT-2.0_Forespørgsel_på_referenceadresse_mail_emne")&body=@Translate("RT-2.0_Forespørgsel_på_referenceadresse_mail_body")"</text>}><span class='icon @iconClass'> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath(GetString("Item.Icon"))) </span><h2> @GetString("Item.Header").Replace("[RTXXX]",@productnumber) <span>@GetString("Item.Subheader").Replace("[RTXXX]",@productnumber)</span></h2> @if (GetBoolean("Item.IsReferenceForm")) { if (p.ProductFieldValues.GetProductFieldValue("ShowNewReferenceTool").Value.ToString() == "True") { <text>@RenderParagraphContent(GetInteger("Item.FormParagraph"))</text> } else { <span><span class="arrow-link"> @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/icon-arrow-right.svg"))) { <span> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/icon-arrow-right.svg")) @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/icon-arrow-right.svg")) </span> } </span> @Translate("RT-2.0_Spørg_på_referenceadresser") </span> } } else { <text>@RenderParagraphContent(GetInteger("Item.FormParagraph"))</text> } </a><a class="mobile-link" @if (GetBoolean("Item.IsReferenceForm") && p.ProductFieldValues.GetProductFieldValue("ShowNewReferenceTool").Value.ToString() == "True") {<text>data-target='product-modal-@GetString("Item.Id")'</text>} @if (GetBoolean("Item.IsReferenceForm") && p.ProductFieldValues.GetProductFieldValue("ShowNewReferenceTool").Value.ToString() == "False") {<text>href="mailto:@Translate("RT-2.0_Reference_mail_modtager")?subject=@productnumber - @Translate("RT-2.0_Forespørgsel_på_referenceadresse_mail_emne")&body=@Translate("RT-2.0_Forespørgsel_på_referenceadresse_mail_body")"</text>}><span class='icon @iconClass'> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath(GetString("Item.Icon"))) </span> @if (GetBoolean("Item.IsReferenceForm")) { if (p.ProductFieldValues.GetProductFieldValue("ShowNewReferenceTool").Value.ToString() == "True") { <h2><span>@GetString("Item.MobileHeader").Replace("[RTXXX]",@productnumber)</span></h2> } else { <h2><span>@Translate("RT-2.0_Spørg_på_referenceadresser")</span></h2> } } else { <h2><span>@GetString("Item.MobileHeader").Replace("[RTXXX]",@productnumber)</span></h2> } </a> @SnippetStart("Modals") <div id='product-modal-@GetString("Item.Id")' class="product-modal modal-light"><div class="column-xxs-22 column-lg-18 column-xl-14 column-xxs-left-1 column-lg-left-3 column-xl-left-5 column-xxs-top-6 column-xxs-bottom-2 column-md-top-2"><div class="wrap-inner"><div class="column-xxs-24"><span class="header"> @GetString("Item.Header").Replace("[RTXXX]",@productnumber) <span>@GetString("Item.Subheader").Replace("[RTXXX]",@productnumber)</span></span></div></div></div><div class="column-xxs-22 column-lg-18 column-xl-14 column-xxs-left-1 column-lg-left-3 column-xl-left-5"> @RenderParagraphContent(GetInteger("Item.FormParagraph")) </div><span class="icon-close"> @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/icon-close.svg"))) { <text>@System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/icon-close.svg"))</text> } </span></div> @SnippetEnd("Modals") } else { <a class="tablet-desktop-link" @if(!string.IsNullOrWhiteSpace(GetString("Item.LinkTitle"))) {<text>title='@GetString("Item.LinkTitle")'</text>}><span class='icon @iconClass'> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath(GetString("Item.Icon"))) </span><h2> @GetString("Item.Header").Replace("[RTXXX]",@productnumber) <span>@GetString("Item.Subheader").Replace("[RTXXX]",@productnumber)</span></h2><form action='/Default.aspx?Id=@GetString("Item.PostPage")' method="post" id='dw-form-@GetString("ParagraphID")'><div class="input-wrap"><input type="text" name='@GetString("Item.FieldName")' placeholder='@GetString("Item.FieldPlaceholder")' autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" /><button class="arrow-link"> @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/icon-arrow-right.svg"))) { <span> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/icon-arrow-right.svg")) @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/icon-arrow-right.svg")) </span> } </button></div></form></a><a class="mobile-link" data-target='product-modal-@GetString("Item.Id")'><span class='icon @iconClass'> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath(GetString("Item.Icon"))) </span><h2><span>@GetString("Item.MobileHeader").Replace("[RTXXX]",@productnumber)</span></h2></a> @SnippetStart("Modals") <div id='product-modal-@GetString("Item.Id")' class="product-modal modal-light"><div class="column-xxs-22 column-lg-18 column-xl-14 column-xxs-left-1 column-lg-left-3 column-xl-left-5 column-xxs-top-6 column-xxs-bottom-2 column-md-top-2"><div class="wrap-inner"><div class="column-xxs-24"><span class="header"> @GetString("Item.Header").Replace("[RTXXX]",@productnumber) <span>@GetString("Item.Subheader").Replace("[RTXXX]",@productnumber)</span></span></div></div></div><div class="column-xxs-22 column-lg-18 column-xl-14 column-xxs-left-1 column-lg-left-3 column-xl-left-5 column-xxs-top-6 column-xxs-bottom-2 column-md-top-2"><form action='/Default.aspx?Id=@GetString("Item.PostPage")' method="post" id='dw-form-@GetString("ParagraphID")'><div class="input-wrap"><input type="text" name='@GetString("Item.FieldName")' placeholder='@GetString("Item.FieldPlaceholder")' autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" /><button class="arrow-link"> @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/icon-arrow-right.svg"))) { <span> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/icon-arrow-right.svg")) @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/icon-arrow-right.svg")) </span> } </button></div></form></div><span class="icon-close"> @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/icon-close.svg"))) { <text>@System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/icon-close.svg"))</text> } </span></div> @SnippetEnd("Modals") } } else { <a @if(GetString("Item.Type") == "link") {<text>href=@link</text>} @if(!string.IsNullOrWhiteSpace(GetString("Item.LinkTitle"))) {<text>title='@GetString("Item.LinkTitle")'</text>} @if(GetString("Item.Type") == "modal-form") {<text>data-target='modal-@GetString("Item.ModalFormParagraph")'</text>} @(GetString("Item.ActionID") == "samples" ? "data-callback='hubspotLoad'" : null) @if (GetBoolean("Item.IsVisualizationToolLink")) {<text>target="_blank"</text>} @if (!string.IsNullOrWhiteSpace(GetString("Item.OpenTrackingCategory"))) {<text>data-open-tracking-category='@GetString("Item.OpenTrackingCategory")'</text>} @if (!string.IsNullOrWhiteSpace(GetString("Item.OpenTrackingAction"))) {<text>data-open-tracking-action='@GetString("Item.OpenTrackingAction")'</text>}><span class='icon @iconClass'> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath(GetString("Item.Icon"))) </span><h2> @GetString("Item.Header").Replace("[RTXXX]",@productnumber) <span>@GetString("Item.Subheader").Replace("[RTXXX]",@productnumber)</span></h2><h2><span>@GetString("Item.MobileHeader").Replace("[RTXXX]",@productnumber)</span></h2> @if (GetString("Item.Type") == "link") { <span><span class="arrow-link"> @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/icon-arrow-right.svg"))) { <span> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/icon-arrow-right.svg")) @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/icon-arrow-right.svg")) </span> } </span> @GetString("Item.LinkText") </span> } else if (GetString("Item.Type") == "modal-form") { <span><span class="arrow-link"> @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/icon-arrow-right.svg"))) { <span> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/icon-arrow-right.svg")) @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/icon-arrow-right.svg")) </span> } </span> @GetString("Item.FormLinkText") </span> } </a> } </div></div> }
Error executing template "/Designs/randers-tegl/Paragraph/rt-2.0.product-action.cshtml"
System.NullReferenceException: Object reference not set to an instance of an object.
   at CompiledRazorTemplates.Dynamic.RazorEngine_480d61cf297b4ec8a76e6ebb59468f6a.Execute() in E:\dynamicweb.net\Solutions\randerstegl.net.dynamicweb-cms.com\files\Templates\Designs\randers-tegl\Paragraph\rt-2.0.product-action.cshtml:line 6
   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 @{ string productid = System.Web.HttpContext.Current.Request.QueryString.Get("ProductID"); Dynamicweb.Ecommerce.Products.Product p = Dynamicweb.Ecommerce.Services.Products.GetProductById(productid, "", false); string productname = p.Name; string productnumber = p.Number; string categoryName = p.Groups[0].Name.ToLower(); } @if (!GetString("Item.ExcludeProducts").Contains(productnumber)) { <div class="column-xxs-12 column-md-8 column-xxs-top-1 column-xxs-bottom-1 column-sm-top-0 column-sm-bottom-0" id='@GetString("Item.ActionID")@("-action")'><div class="wrap-inner"> @{ bool islink = false; string link = ""; if (GetString("Item.Type") == "link") { islink = true; link = GetString("Item.Link"); bool hasparameter = false; if (GetBoolean("Item.IncludeRTNumberInURL")) { link += (GetString("Item.Link").Contains("?") ? "&" : "?"); if (!string.IsNullOrWhiteSpace(GetString("Item.URLParameterName"))) { link += GetString("Item.URLParameterName") + "=" + productnumber.Replace(" ",""); } else { link += "ProductID=" + productid; } hasparameter = true; } if (GetBoolean("Item.IsVisualizationToolLink")) { string brick = p.ProductFieldValues.GetProductFieldValue("VisualizationBrick").Value.ToString(); string groove = p.ProductFieldValues.GetProductFieldValue("VisualizationGroove").Value.ToString(); string linking = p.ProductFieldValues.GetProductFieldValue("VisualizationLinking").Value.ToString(); string paving = p.ProductFieldValues.GetProductFieldValue("VisualizationPaving").Value.ToString(); string roof = p.ProductFieldValues.GetProductFieldValue("VisualizationRoof").Value.ToString(); string house = p.ProductFieldValues.GetProductFieldValue("VisualizationHouse").Value.ToString(); string windows = p.ProductFieldValues.GetProductFieldValue("VisualizationWindows").Value.ToString(); string rnd = p.ProductFieldValues.GetProductFieldValue("VisualizationRnd").Value.ToString(); string viewmode = p.ProductFieldValues.GetProductFieldValue("VisualizationViewmode").Value.ToString(); if (categoryName == "mursten") { link += "#brick=" + productnumber.Replace(" ",""); } else if (!string.IsNullOrWhiteSpace(brick)) { link += "#brick=" + brick; } else { link += "#brick=RT522"; } if (!string.IsNullOrWhiteSpace(groove)) { link += "&groove=" + groove; } if (!string.IsNullOrWhiteSpace(linking)) { link += "&linking=" + linking; } if (!string.IsNullOrWhiteSpace(paving)) { link += "&paving=" + paving; } if (categoryName == "tagsten") { link += "&roof=" + productnumber.Replace(" ","_"); } else if (!string.IsNullOrWhiteSpace(roof)) { link += "&roof=" + roof; } if (!string.IsNullOrWhiteSpace(house)) { link += "&house=" + house; } else if (categoryName == "tagsten") { link += "&house=05"; } if (!string.IsNullOrWhiteSpace(windows)) { link += "&windows=" + windows; } if (!string.IsNullOrWhiteSpace(rnd)) { link += "&rnd=" + rnd; } if (!string.IsNullOrWhiteSpace(viewmode)) { link += "&viewmode=" + viewmode; } else { link += "&viewmode=house"; } } if (GetBoolean("Item.IsTextureToolLink")) { string groove = p.ProductFieldValues.GetProductFieldValue("VisualizationGroove").Value.ToString(); string linking = p.ProductFieldValues.GetProductFieldValue("VisualizationLinking").Value.ToString(); string viewmode = p.ProductFieldValues.GetProductFieldValue("VisualizationViewmode").Value.ToString(); if (categoryName == "mursten") { link += "#brick=" + productnumber.Replace(" ",""); } else { link += "#brick=RT522"; } if (!string.IsNullOrWhiteSpace(groove)) { link += "&groove=" + groove; } if (!string.IsNullOrWhiteSpace(linking)) { link += "&linking=" + linking; } if (!string.IsNullOrWhiteSpace(viewmode)) { link += "&viewmode=" + viewmode; } else { link += "&viewmode=wall"; } } } string iconClass = GetString("Item.Icon"); iconClass = iconClass.Substring(iconClass.LastIndexOf("/") + 1); iconClass = iconClass.Replace(".svg",""); } @if (GetString("Item.Type") == "inline-form" || GetString("Item.Type") == "custom") { if (GetString("Item.Type") == "inline-form") { <a class="tablet-desktop-link" @if(!string.IsNullOrWhiteSpace(GetString("Item.LinkTitle"))) {<text>title='@GetString("Item.LinkTitle")'</text>} @if (GetBoolean("Item.IsReferenceForm") && p.ProductFieldValues.GetProductFieldValue("ShowNewReferenceTool").Value.ToString() == "False") {<text>href="mailto:@Translate("RT-2.0_Reference_mail_modtager")?subject=@productnumber - @Translate("RT-2.0_Forespørgsel_på_referenceadresse_mail_emne")&body=@Translate("RT-2.0_Forespørgsel_på_referenceadresse_mail_body")"</text>}><span class='icon @iconClass'> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath(GetString("Item.Icon"))) </span><h2> @GetString("Item.Header").Replace("[RTXXX]",@productnumber) <span>@GetString("Item.Subheader").Replace("[RTXXX]",@productnumber)</span></h2> @if (GetBoolean("Item.IsReferenceForm")) { if (p.ProductFieldValues.GetProductFieldValue("ShowNewReferenceTool").Value.ToString() == "True") { <text>@RenderParagraphContent(GetInteger("Item.FormParagraph"))</text> } else { <span><span class="arrow-link"> @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/icon-arrow-right.svg"))) { <span> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/icon-arrow-right.svg")) @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/icon-arrow-right.svg")) </span> } </span> @Translate("RT-2.0_Spørg_på_referenceadresser") </span> } } else { <text>@RenderParagraphContent(GetInteger("Item.FormParagraph"))</text> } </a><a class="mobile-link" @if (GetBoolean("Item.IsReferenceForm") && p.ProductFieldValues.GetProductFieldValue("ShowNewReferenceTool").Value.ToString() == "True") {<text>data-target='product-modal-@GetString("Item.Id")'</text>} @if (GetBoolean("Item.IsReferenceForm") && p.ProductFieldValues.GetProductFieldValue("ShowNewReferenceTool").Value.ToString() == "False") {<text>href="mailto:@Translate("RT-2.0_Reference_mail_modtager")?subject=@productnumber - @Translate("RT-2.0_Forespørgsel_på_referenceadresse_mail_emne")&body=@Translate("RT-2.0_Forespørgsel_på_referenceadresse_mail_body")"</text>}><span class='icon @iconClass'> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath(GetString("Item.Icon"))) </span> @if (GetBoolean("Item.IsReferenceForm")) { if (p.ProductFieldValues.GetProductFieldValue("ShowNewReferenceTool").Value.ToString() == "True") { <h2><span>@GetString("Item.MobileHeader").Replace("[RTXXX]",@productnumber)</span></h2> } else { <h2><span>@Translate("RT-2.0_Spørg_på_referenceadresser")</span></h2> } } else { <h2><span>@GetString("Item.MobileHeader").Replace("[RTXXX]",@productnumber)</span></h2> } </a> @SnippetStart("Modals") <div id='product-modal-@GetString("Item.Id")' class="product-modal modal-light"><div class="column-xxs-22 column-lg-18 column-xl-14 column-xxs-left-1 column-lg-left-3 column-xl-left-5 column-xxs-top-6 column-xxs-bottom-2 column-md-top-2"><div class="wrap-inner"><div class="column-xxs-24"><span class="header"> @GetString("Item.Header").Replace("[RTXXX]",@productnumber) <span>@GetString("Item.Subheader").Replace("[RTXXX]",@productnumber)</span></span></div></div></div><div class="column-xxs-22 column-lg-18 column-xl-14 column-xxs-left-1 column-lg-left-3 column-xl-left-5"> @RenderParagraphContent(GetInteger("Item.FormParagraph")) </div><span class="icon-close"> @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/icon-close.svg"))) { <text>@System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/icon-close.svg"))</text> } </span></div> @SnippetEnd("Modals") } else { <a class="tablet-desktop-link" @if(!string.IsNullOrWhiteSpace(GetString("Item.LinkTitle"))) {<text>title='@GetString("Item.LinkTitle")'</text>}><span class='icon @iconClass'> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath(GetString("Item.Icon"))) </span><h2> @GetString("Item.Header").Replace("[RTXXX]",@productnumber) <span>@GetString("Item.Subheader").Replace("[RTXXX]",@productnumber)</span></h2><form action='/Default.aspx?Id=@GetString("Item.PostPage")' method="post" id='dw-form-@GetString("ParagraphID")'><div class="input-wrap"><input type="text" name='@GetString("Item.FieldName")' placeholder='@GetString("Item.FieldPlaceholder")' autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" /><button class="arrow-link"> @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/icon-arrow-right.svg"))) { <span> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/icon-arrow-right.svg")) @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/icon-arrow-right.svg")) </span> } </button></div></form></a><a class="mobile-link" data-target='product-modal-@GetString("Item.Id")'><span class='icon @iconClass'> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath(GetString("Item.Icon"))) </span><h2><span>@GetString("Item.MobileHeader").Replace("[RTXXX]",@productnumber)</span></h2></a> @SnippetStart("Modals") <div id='product-modal-@GetString("Item.Id")' class="product-modal modal-light"><div class="column-xxs-22 column-lg-18 column-xl-14 column-xxs-left-1 column-lg-left-3 column-xl-left-5 column-xxs-top-6 column-xxs-bottom-2 column-md-top-2"><div class="wrap-inner"><div class="column-xxs-24"><span class="header"> @GetString("Item.Header").Replace("[RTXXX]",@productnumber) <span>@GetString("Item.Subheader").Replace("[RTXXX]",@productnumber)</span></span></div></div></div><div class="column-xxs-22 column-lg-18 column-xl-14 column-xxs-left-1 column-lg-left-3 column-xl-left-5 column-xxs-top-6 column-xxs-bottom-2 column-md-top-2"><form action='/Default.aspx?Id=@GetString("Item.PostPage")' method="post" id='dw-form-@GetString("ParagraphID")'><div class="input-wrap"><input type="text" name='@GetString("Item.FieldName")' placeholder='@GetString("Item.FieldPlaceholder")' autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" /><button class="arrow-link"> @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/icon-arrow-right.svg"))) { <span> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/icon-arrow-right.svg")) @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/icon-arrow-right.svg")) </span> } </button></div></form></div><span class="icon-close"> @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/icon-close.svg"))) { <text>@System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/icon-close.svg"))</text> } </span></div> @SnippetEnd("Modals") } } else { <a @if(GetString("Item.Type") == "link") {<text>href=@link</text>} @if(!string.IsNullOrWhiteSpace(GetString("Item.LinkTitle"))) {<text>title='@GetString("Item.LinkTitle")'</text>} @if(GetString("Item.Type") == "modal-form") {<text>data-target='modal-@GetString("Item.ModalFormParagraph")'</text>} @(GetString("Item.ActionID") == "samples" ? "data-callback='hubspotLoad'" : null) @if (GetBoolean("Item.IsVisualizationToolLink")) {<text>target="_blank"</text>} @if (!string.IsNullOrWhiteSpace(GetString("Item.OpenTrackingCategory"))) {<text>data-open-tracking-category='@GetString("Item.OpenTrackingCategory")'</text>} @if (!string.IsNullOrWhiteSpace(GetString("Item.OpenTrackingAction"))) {<text>data-open-tracking-action='@GetString("Item.OpenTrackingAction")'</text>}><span class='icon @iconClass'> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath(GetString("Item.Icon"))) </span><h2> @GetString("Item.Header").Replace("[RTXXX]",@productnumber) <span>@GetString("Item.Subheader").Replace("[RTXXX]",@productnumber)</span></h2><h2><span>@GetString("Item.MobileHeader").Replace("[RTXXX]",@productnumber)</span></h2> @if (GetString("Item.Type") == "link") { <span><span class="arrow-link"> @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/icon-arrow-right.svg"))) { <span> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/icon-arrow-right.svg")) @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/icon-arrow-right.svg")) </span> } </span> @GetString("Item.LinkText") </span> } else if (GetString("Item.Type") == "modal-form") { <span><span class="arrow-link"> @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/icon-arrow-right.svg"))) { <span> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/icon-arrow-right.svg")) @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/icon-arrow-right.svg")) </span> } </span> @GetString("Item.FormLinkText") </span> } </a> } </div></div> }
Error executing template "/Designs/randers-tegl/Paragraph/rt-2.0.product-action.cshtml"
System.NullReferenceException: Object reference not set to an instance of an object.
   at CompiledRazorTemplates.Dynamic.RazorEngine_480d61cf297b4ec8a76e6ebb59468f6a.Execute() in E:\dynamicweb.net\Solutions\randerstegl.net.dynamicweb-cms.com\files\Templates\Designs\randers-tegl\Paragraph\rt-2.0.product-action.cshtml:line 6
   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 @{ string productid = System.Web.HttpContext.Current.Request.QueryString.Get("ProductID"); Dynamicweb.Ecommerce.Products.Product p = Dynamicweb.Ecommerce.Services.Products.GetProductById(productid, "", false); string productname = p.Name; string productnumber = p.Number; string categoryName = p.Groups[0].Name.ToLower(); } @if (!GetString("Item.ExcludeProducts").Contains(productnumber)) { <div class="column-xxs-12 column-md-8 column-xxs-top-1 column-xxs-bottom-1 column-sm-top-0 column-sm-bottom-0" id='@GetString("Item.ActionID")@("-action")'><div class="wrap-inner"> @{ bool islink = false; string link = ""; if (GetString("Item.Type") == "link") { islink = true; link = GetString("Item.Link"); bool hasparameter = false; if (GetBoolean("Item.IncludeRTNumberInURL")) { link += (GetString("Item.Link").Contains("?") ? "&" : "?"); if (!string.IsNullOrWhiteSpace(GetString("Item.URLParameterName"))) { link += GetString("Item.URLParameterName") + "=" + productnumber.Replace(" ",""); } else { link += "ProductID=" + productid; } hasparameter = true; } if (GetBoolean("Item.IsVisualizationToolLink")) { string brick = p.ProductFieldValues.GetProductFieldValue("VisualizationBrick").Value.ToString(); string groove = p.ProductFieldValues.GetProductFieldValue("VisualizationGroove").Value.ToString(); string linking = p.ProductFieldValues.GetProductFieldValue("VisualizationLinking").Value.ToString(); string paving = p.ProductFieldValues.GetProductFieldValue("VisualizationPaving").Value.ToString(); string roof = p.ProductFieldValues.GetProductFieldValue("VisualizationRoof").Value.ToString(); string house = p.ProductFieldValues.GetProductFieldValue("VisualizationHouse").Value.ToString(); string windows = p.ProductFieldValues.GetProductFieldValue("VisualizationWindows").Value.ToString(); string rnd = p.ProductFieldValues.GetProductFieldValue("VisualizationRnd").Value.ToString(); string viewmode = p.ProductFieldValues.GetProductFieldValue("VisualizationViewmode").Value.ToString(); if (categoryName == "mursten") { link += "#brick=" + productnumber.Replace(" ",""); } else if (!string.IsNullOrWhiteSpace(brick)) { link += "#brick=" + brick; } else { link += "#brick=RT522"; } if (!string.IsNullOrWhiteSpace(groove)) { link += "&groove=" + groove; } if (!string.IsNullOrWhiteSpace(linking)) { link += "&linking=" + linking; } if (!string.IsNullOrWhiteSpace(paving)) { link += "&paving=" + paving; } if (categoryName == "tagsten") { link += "&roof=" + productnumber.Replace(" ","_"); } else if (!string.IsNullOrWhiteSpace(roof)) { link += "&roof=" + roof; } if (!string.IsNullOrWhiteSpace(house)) { link += "&house=" + house; } else if (categoryName == "tagsten") { link += "&house=05"; } if (!string.IsNullOrWhiteSpace(windows)) { link += "&windows=" + windows; } if (!string.IsNullOrWhiteSpace(rnd)) { link += "&rnd=" + rnd; } if (!string.IsNullOrWhiteSpace(viewmode)) { link += "&viewmode=" + viewmode; } else { link += "&viewmode=house"; } } if (GetBoolean("Item.IsTextureToolLink")) { string groove = p.ProductFieldValues.GetProductFieldValue("VisualizationGroove").Value.ToString(); string linking = p.ProductFieldValues.GetProductFieldValue("VisualizationLinking").Value.ToString(); string viewmode = p.ProductFieldValues.GetProductFieldValue("VisualizationViewmode").Value.ToString(); if (categoryName == "mursten") { link += "#brick=" + productnumber.Replace(" ",""); } else { link += "#brick=RT522"; } if (!string.IsNullOrWhiteSpace(groove)) { link += "&groove=" + groove; } if (!string.IsNullOrWhiteSpace(linking)) { link += "&linking=" + linking; } if (!string.IsNullOrWhiteSpace(viewmode)) { link += "&viewmode=" + viewmode; } else { link += "&viewmode=wall"; } } } string iconClass = GetString("Item.Icon"); iconClass = iconClass.Substring(iconClass.LastIndexOf("/") + 1); iconClass = iconClass.Replace(".svg",""); } @if (GetString("Item.Type") == "inline-form" || GetString("Item.Type") == "custom") { if (GetString("Item.Type") == "inline-form") { <a class="tablet-desktop-link" @if(!string.IsNullOrWhiteSpace(GetString("Item.LinkTitle"))) {<text>title='@GetString("Item.LinkTitle")'</text>} @if (GetBoolean("Item.IsReferenceForm") && p.ProductFieldValues.GetProductFieldValue("ShowNewReferenceTool").Value.ToString() == "False") {<text>href="mailto:@Translate("RT-2.0_Reference_mail_modtager")?subject=@productnumber - @Translate("RT-2.0_Forespørgsel_på_referenceadresse_mail_emne")&body=@Translate("RT-2.0_Forespørgsel_på_referenceadresse_mail_body")"</text>}><span class='icon @iconClass'> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath(GetString("Item.Icon"))) </span><h2> @GetString("Item.Header").Replace("[RTXXX]",@productnumber) <span>@GetString("Item.Subheader").Replace("[RTXXX]",@productnumber)</span></h2> @if (GetBoolean("Item.IsReferenceForm")) { if (p.ProductFieldValues.GetProductFieldValue("ShowNewReferenceTool").Value.ToString() == "True") { <text>@RenderParagraphContent(GetInteger("Item.FormParagraph"))</text> } else { <span><span class="arrow-link"> @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/icon-arrow-right.svg"))) { <span> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/icon-arrow-right.svg")) @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/icon-arrow-right.svg")) </span> } </span> @Translate("RT-2.0_Spørg_på_referenceadresser") </span> } } else { <text>@RenderParagraphContent(GetInteger("Item.FormParagraph"))</text> } </a><a class="mobile-link" @if (GetBoolean("Item.IsReferenceForm") && p.ProductFieldValues.GetProductFieldValue("ShowNewReferenceTool").Value.ToString() == "True") {<text>data-target='product-modal-@GetString("Item.Id")'</text>} @if (GetBoolean("Item.IsReferenceForm") && p.ProductFieldValues.GetProductFieldValue("ShowNewReferenceTool").Value.ToString() == "False") {<text>href="mailto:@Translate("RT-2.0_Reference_mail_modtager")?subject=@productnumber - @Translate("RT-2.0_Forespørgsel_på_referenceadresse_mail_emne")&body=@Translate("RT-2.0_Forespørgsel_på_referenceadresse_mail_body")"</text>}><span class='icon @iconClass'> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath(GetString("Item.Icon"))) </span> @if (GetBoolean("Item.IsReferenceForm")) { if (p.ProductFieldValues.GetProductFieldValue("ShowNewReferenceTool").Value.ToString() == "True") { <h2><span>@GetString("Item.MobileHeader").Replace("[RTXXX]",@productnumber)</span></h2> } else { <h2><span>@Translate("RT-2.0_Spørg_på_referenceadresser")</span></h2> } } else { <h2><span>@GetString("Item.MobileHeader").Replace("[RTXXX]",@productnumber)</span></h2> } </a> @SnippetStart("Modals") <div id='product-modal-@GetString("Item.Id")' class="product-modal modal-light"><div class="column-xxs-22 column-lg-18 column-xl-14 column-xxs-left-1 column-lg-left-3 column-xl-left-5 column-xxs-top-6 column-xxs-bottom-2 column-md-top-2"><div class="wrap-inner"><div class="column-xxs-24"><span class="header"> @GetString("Item.Header").Replace("[RTXXX]",@productnumber) <span>@GetString("Item.Subheader").Replace("[RTXXX]",@productnumber)</span></span></div></div></div><div class="column-xxs-22 column-lg-18 column-xl-14 column-xxs-left-1 column-lg-left-3 column-xl-left-5"> @RenderParagraphContent(GetInteger("Item.FormParagraph")) </div><span class="icon-close"> @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/icon-close.svg"))) { <text>@System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/icon-close.svg"))</text> } </span></div> @SnippetEnd("Modals") } else { <a class="tablet-desktop-link" @if(!string.IsNullOrWhiteSpace(GetString("Item.LinkTitle"))) {<text>title='@GetString("Item.LinkTitle")'</text>}><span class='icon @iconClass'> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath(GetString("Item.Icon"))) </span><h2> @GetString("Item.Header").Replace("[RTXXX]",@productnumber) <span>@GetString("Item.Subheader").Replace("[RTXXX]",@productnumber)</span></h2><form action='/Default.aspx?Id=@GetString("Item.PostPage")' method="post" id='dw-form-@GetString("ParagraphID")'><div class="input-wrap"><input type="text" name='@GetString("Item.FieldName")' placeholder='@GetString("Item.FieldPlaceholder")' autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" /><button class="arrow-link"> @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/icon-arrow-right.svg"))) { <span> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/icon-arrow-right.svg")) @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/icon-arrow-right.svg")) </span> } </button></div></form></a><a class="mobile-link" data-target='product-modal-@GetString("Item.Id")'><span class='icon @iconClass'> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath(GetString("Item.Icon"))) </span><h2><span>@GetString("Item.MobileHeader").Replace("[RTXXX]",@productnumber)</span></h2></a> @SnippetStart("Modals") <div id='product-modal-@GetString("Item.Id")' class="product-modal modal-light"><div class="column-xxs-22 column-lg-18 column-xl-14 column-xxs-left-1 column-lg-left-3 column-xl-left-5 column-xxs-top-6 column-xxs-bottom-2 column-md-top-2"><div class="wrap-inner"><div class="column-xxs-24"><span class="header"> @GetString("Item.Header").Replace("[RTXXX]",@productnumber) <span>@GetString("Item.Subheader").Replace("[RTXXX]",@productnumber)</span></span></div></div></div><div class="column-xxs-22 column-lg-18 column-xl-14 column-xxs-left-1 column-lg-left-3 column-xl-left-5 column-xxs-top-6 column-xxs-bottom-2 column-md-top-2"><form action='/Default.aspx?Id=@GetString("Item.PostPage")' method="post" id='dw-form-@GetString("ParagraphID")'><div class="input-wrap"><input type="text" name='@GetString("Item.FieldName")' placeholder='@GetString("Item.FieldPlaceholder")' autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" /><button class="arrow-link"> @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/icon-arrow-right.svg"))) { <span> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/icon-arrow-right.svg")) @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/icon-arrow-right.svg")) </span> } </button></div></form></div><span class="icon-close"> @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/icon-close.svg"))) { <text>@System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/icon-close.svg"))</text> } </span></div> @SnippetEnd("Modals") } } else { <a @if(GetString("Item.Type") == "link") {<text>href=@link</text>} @if(!string.IsNullOrWhiteSpace(GetString("Item.LinkTitle"))) {<text>title='@GetString("Item.LinkTitle")'</text>} @if(GetString("Item.Type") == "modal-form") {<text>data-target='modal-@GetString("Item.ModalFormParagraph")'</text>} @(GetString("Item.ActionID") == "samples" ? "data-callback='hubspotLoad'" : null) @if (GetBoolean("Item.IsVisualizationToolLink")) {<text>target="_blank"</text>} @if (!string.IsNullOrWhiteSpace(GetString("Item.OpenTrackingCategory"))) {<text>data-open-tracking-category='@GetString("Item.OpenTrackingCategory")'</text>} @if (!string.IsNullOrWhiteSpace(GetString("Item.OpenTrackingAction"))) {<text>data-open-tracking-action='@GetString("Item.OpenTrackingAction")'</text>}><span class='icon @iconClass'> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath(GetString("Item.Icon"))) </span><h2> @GetString("Item.Header").Replace("[RTXXX]",@productnumber) <span>@GetString("Item.Subheader").Replace("[RTXXX]",@productnumber)</span></h2><h2><span>@GetString("Item.MobileHeader").Replace("[RTXXX]",@productnumber)</span></h2> @if (GetString("Item.Type") == "link") { <span><span class="arrow-link"> @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/icon-arrow-right.svg"))) { <span> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/icon-arrow-right.svg")) @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/icon-arrow-right.svg")) </span> } </span> @GetString("Item.LinkText") </span> } else if (GetString("Item.Type") == "modal-form") { <span><span class="arrow-link"> @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/icon-arrow-right.svg"))) { <span> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/icon-arrow-right.svg")) @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/icon-arrow-right.svg")) </span> } </span> @GetString("Item.FormLinkText") </span> } </a> } </div></div> }
Error executing template "/Designs/randers-tegl/Paragraph/rt-2.0.product-action.cshtml"
System.NullReferenceException: Object reference not set to an instance of an object.
   at CompiledRazorTemplates.Dynamic.RazorEngine_480d61cf297b4ec8a76e6ebb59468f6a.Execute() in E:\dynamicweb.net\Solutions\randerstegl.net.dynamicweb-cms.com\files\Templates\Designs\randers-tegl\Paragraph\rt-2.0.product-action.cshtml:line 6
   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 @{ string productid = System.Web.HttpContext.Current.Request.QueryString.Get("ProductID"); Dynamicweb.Ecommerce.Products.Product p = Dynamicweb.Ecommerce.Services.Products.GetProductById(productid, "", false); string productname = p.Name; string productnumber = p.Number; string categoryName = p.Groups[0].Name.ToLower(); } @if (!GetString("Item.ExcludeProducts").Contains(productnumber)) { <div class="column-xxs-12 column-md-8 column-xxs-top-1 column-xxs-bottom-1 column-sm-top-0 column-sm-bottom-0" id='@GetString("Item.ActionID")@("-action")'><div class="wrap-inner"> @{ bool islink = false; string link = ""; if (GetString("Item.Type") == "link") { islink = true; link = GetString("Item.Link"); bool hasparameter = false; if (GetBoolean("Item.IncludeRTNumberInURL")) { link += (GetString("Item.Link").Contains("?") ? "&" : "?"); if (!string.IsNullOrWhiteSpace(GetString("Item.URLParameterName"))) { link += GetString("Item.URLParameterName") + "=" + productnumber.Replace(" ",""); } else { link += "ProductID=" + productid; } hasparameter = true; } if (GetBoolean("Item.IsVisualizationToolLink")) { string brick = p.ProductFieldValues.GetProductFieldValue("VisualizationBrick").Value.ToString(); string groove = p.ProductFieldValues.GetProductFieldValue("VisualizationGroove").Value.ToString(); string linking = p.ProductFieldValues.GetProductFieldValue("VisualizationLinking").Value.ToString(); string paving = p.ProductFieldValues.GetProductFieldValue("VisualizationPaving").Value.ToString(); string roof = p.ProductFieldValues.GetProductFieldValue("VisualizationRoof").Value.ToString(); string house = p.ProductFieldValues.GetProductFieldValue("VisualizationHouse").Value.ToString(); string windows = p.ProductFieldValues.GetProductFieldValue("VisualizationWindows").Value.ToString(); string rnd = p.ProductFieldValues.GetProductFieldValue("VisualizationRnd").Value.ToString(); string viewmode = p.ProductFieldValues.GetProductFieldValue("VisualizationViewmode").Value.ToString(); if (categoryName == "mursten") { link += "#brick=" + productnumber.Replace(" ",""); } else if (!string.IsNullOrWhiteSpace(brick)) { link += "#brick=" + brick; } else { link += "#brick=RT522"; } if (!string.IsNullOrWhiteSpace(groove)) { link += "&groove=" + groove; } if (!string.IsNullOrWhiteSpace(linking)) { link += "&linking=" + linking; } if (!string.IsNullOrWhiteSpace(paving)) { link += "&paving=" + paving; } if (categoryName == "tagsten") { link += "&roof=" + productnumber.Replace(" ","_"); } else if (!string.IsNullOrWhiteSpace(roof)) { link += "&roof=" + roof; } if (!string.IsNullOrWhiteSpace(house)) { link += "&house=" + house; } else if (categoryName == "tagsten") { link += "&house=05"; } if (!string.IsNullOrWhiteSpace(windows)) { link += "&windows=" + windows; } if (!string.IsNullOrWhiteSpace(rnd)) { link += "&rnd=" + rnd; } if (!string.IsNullOrWhiteSpace(viewmode)) { link += "&viewmode=" + viewmode; } else { link += "&viewmode=house"; } } if (GetBoolean("Item.IsTextureToolLink")) { string groove = p.ProductFieldValues.GetProductFieldValue("VisualizationGroove").Value.ToString(); string linking = p.ProductFieldValues.GetProductFieldValue("VisualizationLinking").Value.ToString(); string viewmode = p.ProductFieldValues.GetProductFieldValue("VisualizationViewmode").Value.ToString(); if (categoryName == "mursten") { link += "#brick=" + productnumber.Replace(" ",""); } else { link += "#brick=RT522"; } if (!string.IsNullOrWhiteSpace(groove)) { link += "&groove=" + groove; } if (!string.IsNullOrWhiteSpace(linking)) { link += "&linking=" + linking; } if (!string.IsNullOrWhiteSpace(viewmode)) { link += "&viewmode=" + viewmode; } else { link += "&viewmode=wall"; } } } string iconClass = GetString("Item.Icon"); iconClass = iconClass.Substring(iconClass.LastIndexOf("/") + 1); iconClass = iconClass.Replace(".svg",""); } @if (GetString("Item.Type") == "inline-form" || GetString("Item.Type") == "custom") { if (GetString("Item.Type") == "inline-form") { <a class="tablet-desktop-link" @if(!string.IsNullOrWhiteSpace(GetString("Item.LinkTitle"))) {<text>title='@GetString("Item.LinkTitle")'</text>} @if (GetBoolean("Item.IsReferenceForm") && p.ProductFieldValues.GetProductFieldValue("ShowNewReferenceTool").Value.ToString() == "False") {<text>href="mailto:@Translate("RT-2.0_Reference_mail_modtager")?subject=@productnumber - @Translate("RT-2.0_Forespørgsel_på_referenceadresse_mail_emne")&body=@Translate("RT-2.0_Forespørgsel_på_referenceadresse_mail_body")"</text>}><span class='icon @iconClass'> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath(GetString("Item.Icon"))) </span><h2> @GetString("Item.Header").Replace("[RTXXX]",@productnumber) <span>@GetString("Item.Subheader").Replace("[RTXXX]",@productnumber)</span></h2> @if (GetBoolean("Item.IsReferenceForm")) { if (p.ProductFieldValues.GetProductFieldValue("ShowNewReferenceTool").Value.ToString() == "True") { <text>@RenderParagraphContent(GetInteger("Item.FormParagraph"))</text> } else { <span><span class="arrow-link"> @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/icon-arrow-right.svg"))) { <span> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/icon-arrow-right.svg")) @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/icon-arrow-right.svg")) </span> } </span> @Translate("RT-2.0_Spørg_på_referenceadresser") </span> } } else { <text>@RenderParagraphContent(GetInteger("Item.FormParagraph"))</text> } </a><a class="mobile-link" @if (GetBoolean("Item.IsReferenceForm") && p.ProductFieldValues.GetProductFieldValue("ShowNewReferenceTool").Value.ToString() == "True") {<text>data-target='product-modal-@GetString("Item.Id")'</text>} @if (GetBoolean("Item.IsReferenceForm") && p.ProductFieldValues.GetProductFieldValue("ShowNewReferenceTool").Value.ToString() == "False") {<text>href="mailto:@Translate("RT-2.0_Reference_mail_modtager")?subject=@productnumber - @Translate("RT-2.0_Forespørgsel_på_referenceadresse_mail_emne")&body=@Translate("RT-2.0_Forespørgsel_på_referenceadresse_mail_body")"</text>}><span class='icon @iconClass'> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath(GetString("Item.Icon"))) </span> @if (GetBoolean("Item.IsReferenceForm")) { if (p.ProductFieldValues.GetProductFieldValue("ShowNewReferenceTool").Value.ToString() == "True") { <h2><span>@GetString("Item.MobileHeader").Replace("[RTXXX]",@productnumber)</span></h2> } else { <h2><span>@Translate("RT-2.0_Spørg_på_referenceadresser")</span></h2> } } else { <h2><span>@GetString("Item.MobileHeader").Replace("[RTXXX]",@productnumber)</span></h2> } </a> @SnippetStart("Modals") <div id='product-modal-@GetString("Item.Id")' class="product-modal modal-light"><div class="column-xxs-22 column-lg-18 column-xl-14 column-xxs-left-1 column-lg-left-3 column-xl-left-5 column-xxs-top-6 column-xxs-bottom-2 column-md-top-2"><div class="wrap-inner"><div class="column-xxs-24"><span class="header"> @GetString("Item.Header").Replace("[RTXXX]",@productnumber) <span>@GetString("Item.Subheader").Replace("[RTXXX]",@productnumber)</span></span></div></div></div><div class="column-xxs-22 column-lg-18 column-xl-14 column-xxs-left-1 column-lg-left-3 column-xl-left-5"> @RenderParagraphContent(GetInteger("Item.FormParagraph")) </div><span class="icon-close"> @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/icon-close.svg"))) { <text>@System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/icon-close.svg"))</text> } </span></div> @SnippetEnd("Modals") } else { <a class="tablet-desktop-link" @if(!string.IsNullOrWhiteSpace(GetString("Item.LinkTitle"))) {<text>title='@GetString("Item.LinkTitle")'</text>}><span class='icon @iconClass'> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath(GetString("Item.Icon"))) </span><h2> @GetString("Item.Header").Replace("[RTXXX]",@productnumber) <span>@GetString("Item.Subheader").Replace("[RTXXX]",@productnumber)</span></h2><form action='/Default.aspx?Id=@GetString("Item.PostPage")' method="post" id='dw-form-@GetString("ParagraphID")'><div class="input-wrap"><input type="text" name='@GetString("Item.FieldName")' placeholder='@GetString("Item.FieldPlaceholder")' autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" /><button class="arrow-link"> @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/icon-arrow-right.svg"))) { <span> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/icon-arrow-right.svg")) @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/icon-arrow-right.svg")) </span> } </button></div></form></a><a class="mobile-link" data-target='product-modal-@GetString("Item.Id")'><span class='icon @iconClass'> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath(GetString("Item.Icon"))) </span><h2><span>@GetString("Item.MobileHeader").Replace("[RTXXX]",@productnumber)</span></h2></a> @SnippetStart("Modals") <div id='product-modal-@GetString("Item.Id")' class="product-modal modal-light"><div class="column-xxs-22 column-lg-18 column-xl-14 column-xxs-left-1 column-lg-left-3 column-xl-left-5 column-xxs-top-6 column-xxs-bottom-2 column-md-top-2"><div class="wrap-inner"><div class="column-xxs-24"><span class="header"> @GetString("Item.Header").Replace("[RTXXX]",@productnumber) <span>@GetString("Item.Subheader").Replace("[RTXXX]",@productnumber)</span></span></div></div></div><div class="column-xxs-22 column-lg-18 column-xl-14 column-xxs-left-1 column-lg-left-3 column-xl-left-5 column-xxs-top-6 column-xxs-bottom-2 column-md-top-2"><form action='/Default.aspx?Id=@GetString("Item.PostPage")' method="post" id='dw-form-@GetString("ParagraphID")'><div class="input-wrap"><input type="text" name='@GetString("Item.FieldName")' placeholder='@GetString("Item.FieldPlaceholder")' autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" /><button class="arrow-link"> @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/icon-arrow-right.svg"))) { <span> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/icon-arrow-right.svg")) @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/icon-arrow-right.svg")) </span> } </button></div></form></div><span class="icon-close"> @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/icon-close.svg"))) { <text>@System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/icon-close.svg"))</text> } </span></div> @SnippetEnd("Modals") } } else { <a @if(GetString("Item.Type") == "link") {<text>href=@link</text>} @if(!string.IsNullOrWhiteSpace(GetString("Item.LinkTitle"))) {<text>title='@GetString("Item.LinkTitle")'</text>} @if(GetString("Item.Type") == "modal-form") {<text>data-target='modal-@GetString("Item.ModalFormParagraph")'</text>} @(GetString("Item.ActionID") == "samples" ? "data-callback='hubspotLoad'" : null) @if (GetBoolean("Item.IsVisualizationToolLink")) {<text>target="_blank"</text>} @if (!string.IsNullOrWhiteSpace(GetString("Item.OpenTrackingCategory"))) {<text>data-open-tracking-category='@GetString("Item.OpenTrackingCategory")'</text>} @if (!string.IsNullOrWhiteSpace(GetString("Item.OpenTrackingAction"))) {<text>data-open-tracking-action='@GetString("Item.OpenTrackingAction")'</text>}><span class='icon @iconClass'> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath(GetString("Item.Icon"))) </span><h2> @GetString("Item.Header").Replace("[RTXXX]",@productnumber) <span>@GetString("Item.Subheader").Replace("[RTXXX]",@productnumber)</span></h2><h2><span>@GetString("Item.MobileHeader").Replace("[RTXXX]",@productnumber)</span></h2> @if (GetString("Item.Type") == "link") { <span><span class="arrow-link"> @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/icon-arrow-right.svg"))) { <span> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/icon-arrow-right.svg")) @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/icon-arrow-right.svg")) </span> } </span> @GetString("Item.LinkText") </span> } else if (GetString("Item.Type") == "modal-form") { <span><span class="arrow-link"> @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/icon-arrow-right.svg"))) { <span> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/icon-arrow-right.svg")) @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/icon-arrow-right.svg")) </span> } </span> @GetString("Item.FormLinkText") </span> } </a> } </div></div> }
Error executing template "/Designs/randers-tegl/Paragraph/rt-2.0.product-action.cshtml"
System.NullReferenceException: Object reference not set to an instance of an object.
   at CompiledRazorTemplates.Dynamic.RazorEngine_480d61cf297b4ec8a76e6ebb59468f6a.Execute() in E:\dynamicweb.net\Solutions\randerstegl.net.dynamicweb-cms.com\files\Templates\Designs\randers-tegl\Paragraph\rt-2.0.product-action.cshtml:line 6
   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 @{ string productid = System.Web.HttpContext.Current.Request.QueryString.Get("ProductID"); Dynamicweb.Ecommerce.Products.Product p = Dynamicweb.Ecommerce.Services.Products.GetProductById(productid, "", false); string productname = p.Name; string productnumber = p.Number; string categoryName = p.Groups[0].Name.ToLower(); } @if (!GetString("Item.ExcludeProducts").Contains(productnumber)) { <div class="column-xxs-12 column-md-8 column-xxs-top-1 column-xxs-bottom-1 column-sm-top-0 column-sm-bottom-0" id='@GetString("Item.ActionID")@("-action")'><div class="wrap-inner"> @{ bool islink = false; string link = ""; if (GetString("Item.Type") == "link") { islink = true; link = GetString("Item.Link"); bool hasparameter = false; if (GetBoolean("Item.IncludeRTNumberInURL")) { link += (GetString("Item.Link").Contains("?") ? "&" : "?"); if (!string.IsNullOrWhiteSpace(GetString("Item.URLParameterName"))) { link += GetString("Item.URLParameterName") + "=" + productnumber.Replace(" ",""); } else { link += "ProductID=" + productid; } hasparameter = true; } if (GetBoolean("Item.IsVisualizationToolLink")) { string brick = p.ProductFieldValues.GetProductFieldValue("VisualizationBrick").Value.ToString(); string groove = p.ProductFieldValues.GetProductFieldValue("VisualizationGroove").Value.ToString(); string linking = p.ProductFieldValues.GetProductFieldValue("VisualizationLinking").Value.ToString(); string paving = p.ProductFieldValues.GetProductFieldValue("VisualizationPaving").Value.ToString(); string roof = p.ProductFieldValues.GetProductFieldValue("VisualizationRoof").Value.ToString(); string house = p.ProductFieldValues.GetProductFieldValue("VisualizationHouse").Value.ToString(); string windows = p.ProductFieldValues.GetProductFieldValue("VisualizationWindows").Value.ToString(); string rnd = p.ProductFieldValues.GetProductFieldValue("VisualizationRnd").Value.ToString(); string viewmode = p.ProductFieldValues.GetProductFieldValue("VisualizationViewmode").Value.ToString(); if (categoryName == "mursten") { link += "#brick=" + productnumber.Replace(" ",""); } else if (!string.IsNullOrWhiteSpace(brick)) { link += "#brick=" + brick; } else { link += "#brick=RT522"; } if (!string.IsNullOrWhiteSpace(groove)) { link += "&groove=" + groove; } if (!string.IsNullOrWhiteSpace(linking)) { link += "&linking=" + linking; } if (!string.IsNullOrWhiteSpace(paving)) { link += "&paving=" + paving; } if (categoryName == "tagsten") { link += "&roof=" + productnumber.Replace(" ","_"); } else if (!string.IsNullOrWhiteSpace(roof)) { link += "&roof=" + roof; } if (!string.IsNullOrWhiteSpace(house)) { link += "&house=" + house; } else if (categoryName == "tagsten") { link += "&house=05"; } if (!string.IsNullOrWhiteSpace(windows)) { link += "&windows=" + windows; } if (!string.IsNullOrWhiteSpace(rnd)) { link += "&rnd=" + rnd; } if (!string.IsNullOrWhiteSpace(viewmode)) { link += "&viewmode=" + viewmode; } else { link += "&viewmode=house"; } } if (GetBoolean("Item.IsTextureToolLink")) { string groove = p.ProductFieldValues.GetProductFieldValue("VisualizationGroove").Value.ToString(); string linking = p.ProductFieldValues.GetProductFieldValue("VisualizationLinking").Value.ToString(); string viewmode = p.ProductFieldValues.GetProductFieldValue("VisualizationViewmode").Value.ToString(); if (categoryName == "mursten") { link += "#brick=" + productnumber.Replace(" ",""); } else { link += "#brick=RT522"; } if (!string.IsNullOrWhiteSpace(groove)) { link += "&groove=" + groove; } if (!string.IsNullOrWhiteSpace(linking)) { link += "&linking=" + linking; } if (!string.IsNullOrWhiteSpace(viewmode)) { link += "&viewmode=" + viewmode; } else { link += "&viewmode=wall"; } } } string iconClass = GetString("Item.Icon"); iconClass = iconClass.Substring(iconClass.LastIndexOf("/") + 1); iconClass = iconClass.Replace(".svg",""); } @if (GetString("Item.Type") == "inline-form" || GetString("Item.Type") == "custom") { if (GetString("Item.Type") == "inline-form") { <a class="tablet-desktop-link" @if(!string.IsNullOrWhiteSpace(GetString("Item.LinkTitle"))) {<text>title='@GetString("Item.LinkTitle")'</text>} @if (GetBoolean("Item.IsReferenceForm") && p.ProductFieldValues.GetProductFieldValue("ShowNewReferenceTool").Value.ToString() == "False") {<text>href="mailto:@Translate("RT-2.0_Reference_mail_modtager")?subject=@productnumber - @Translate("RT-2.0_Forespørgsel_på_referenceadresse_mail_emne")&body=@Translate("RT-2.0_Forespørgsel_på_referenceadresse_mail_body")"</text>}><span class='icon @iconClass'> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath(GetString("Item.Icon"))) </span><h2> @GetString("Item.Header").Replace("[RTXXX]",@productnumber) <span>@GetString("Item.Subheader").Replace("[RTXXX]",@productnumber)</span></h2> @if (GetBoolean("Item.IsReferenceForm")) { if (p.ProductFieldValues.GetProductFieldValue("ShowNewReferenceTool").Value.ToString() == "True") { <text>@RenderParagraphContent(GetInteger("Item.FormParagraph"))</text> } else { <span><span class="arrow-link"> @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/icon-arrow-right.svg"))) { <span> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/icon-arrow-right.svg")) @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/icon-arrow-right.svg")) </span> } </span> @Translate("RT-2.0_Spørg_på_referenceadresser") </span> } } else { <text>@RenderParagraphContent(GetInteger("Item.FormParagraph"))</text> } </a><a class="mobile-link" @if (GetBoolean("Item.IsReferenceForm") && p.ProductFieldValues.GetProductFieldValue("ShowNewReferenceTool").Value.ToString() == "True") {<text>data-target='product-modal-@GetString("Item.Id")'</text>} @if (GetBoolean("Item.IsReferenceForm") && p.ProductFieldValues.GetProductFieldValue("ShowNewReferenceTool").Value.ToString() == "False") {<text>href="mailto:@Translate("RT-2.0_Reference_mail_modtager")?subject=@productnumber - @Translate("RT-2.0_Forespørgsel_på_referenceadresse_mail_emne")&body=@Translate("RT-2.0_Forespørgsel_på_referenceadresse_mail_body")"</text>}><span class='icon @iconClass'> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath(GetString("Item.Icon"))) </span> @if (GetBoolean("Item.IsReferenceForm")) { if (p.ProductFieldValues.GetProductFieldValue("ShowNewReferenceTool").Value.ToString() == "True") { <h2><span>@GetString("Item.MobileHeader").Replace("[RTXXX]",@productnumber)</span></h2> } else { <h2><span>@Translate("RT-2.0_Spørg_på_referenceadresser")</span></h2> } } else { <h2><span>@GetString("Item.MobileHeader").Replace("[RTXXX]",@productnumber)</span></h2> } </a> @SnippetStart("Modals") <div id='product-modal-@GetString("Item.Id")' class="product-modal modal-light"><div class="column-xxs-22 column-lg-18 column-xl-14 column-xxs-left-1 column-lg-left-3 column-xl-left-5 column-xxs-top-6 column-xxs-bottom-2 column-md-top-2"><div class="wrap-inner"><div class="column-xxs-24"><span class="header"> @GetString("Item.Header").Replace("[RTXXX]",@productnumber) <span>@GetString("Item.Subheader").Replace("[RTXXX]",@productnumber)</span></span></div></div></div><div class="column-xxs-22 column-lg-18 column-xl-14 column-xxs-left-1 column-lg-left-3 column-xl-left-5"> @RenderParagraphContent(GetInteger("Item.FormParagraph")) </div><span class="icon-close"> @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/icon-close.svg"))) { <text>@System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/icon-close.svg"))</text> } </span></div> @SnippetEnd("Modals") } else { <a class="tablet-desktop-link" @if(!string.IsNullOrWhiteSpace(GetString("Item.LinkTitle"))) {<text>title='@GetString("Item.LinkTitle")'</text>}><span class='icon @iconClass'> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath(GetString("Item.Icon"))) </span><h2> @GetString("Item.Header").Replace("[RTXXX]",@productnumber) <span>@GetString("Item.Subheader").Replace("[RTXXX]",@productnumber)</span></h2><form action='/Default.aspx?Id=@GetString("Item.PostPage")' method="post" id='dw-form-@GetString("ParagraphID")'><div class="input-wrap"><input type="text" name='@GetString("Item.FieldName")' placeholder='@GetString("Item.FieldPlaceholder")' autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" /><button class="arrow-link"> @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/icon-arrow-right.svg"))) { <span> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/icon-arrow-right.svg")) @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/icon-arrow-right.svg")) </span> } </button></div></form></a><a class="mobile-link" data-target='product-modal-@GetString("Item.Id")'><span class='icon @iconClass'> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath(GetString("Item.Icon"))) </span><h2><span>@GetString("Item.MobileHeader").Replace("[RTXXX]",@productnumber)</span></h2></a> @SnippetStart("Modals") <div id='product-modal-@GetString("Item.Id")' class="product-modal modal-light"><div class="column-xxs-22 column-lg-18 column-xl-14 column-xxs-left-1 column-lg-left-3 column-xl-left-5 column-xxs-top-6 column-xxs-bottom-2 column-md-top-2"><div class="wrap-inner"><div class="column-xxs-24"><span class="header"> @GetString("Item.Header").Replace("[RTXXX]",@productnumber) <span>@GetString("Item.Subheader").Replace("[RTXXX]",@productnumber)</span></span></div></div></div><div class="column-xxs-22 column-lg-18 column-xl-14 column-xxs-left-1 column-lg-left-3 column-xl-left-5 column-xxs-top-6 column-xxs-bottom-2 column-md-top-2"><form action='/Default.aspx?Id=@GetString("Item.PostPage")' method="post" id='dw-form-@GetString("ParagraphID")'><div class="input-wrap"><input type="text" name='@GetString("Item.FieldName")' placeholder='@GetString("Item.FieldPlaceholder")' autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" /><button class="arrow-link"> @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/icon-arrow-right.svg"))) { <span> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/icon-arrow-right.svg")) @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/icon-arrow-right.svg")) </span> } </button></div></form></div><span class="icon-close"> @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/icon-close.svg"))) { <text>@System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/icon-close.svg"))</text> } </span></div> @SnippetEnd("Modals") } } else { <a @if(GetString("Item.Type") == "link") {<text>href=@link</text>} @if(!string.IsNullOrWhiteSpace(GetString("Item.LinkTitle"))) {<text>title='@GetString("Item.LinkTitle")'</text>} @if(GetString("Item.Type") == "modal-form") {<text>data-target='modal-@GetString("Item.ModalFormParagraph")'</text>} @(GetString("Item.ActionID") == "samples" ? "data-callback='hubspotLoad'" : null) @if (GetBoolean("Item.IsVisualizationToolLink")) {<text>target="_blank"</text>} @if (!string.IsNullOrWhiteSpace(GetString("Item.OpenTrackingCategory"))) {<text>data-open-tracking-category='@GetString("Item.OpenTrackingCategory")'</text>} @if (!string.IsNullOrWhiteSpace(GetString("Item.OpenTrackingAction"))) {<text>data-open-tracking-action='@GetString("Item.OpenTrackingAction")'</text>}><span class='icon @iconClass'> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath(GetString("Item.Icon"))) </span><h2> @GetString("Item.Header").Replace("[RTXXX]",@productnumber) <span>@GetString("Item.Subheader").Replace("[RTXXX]",@productnumber)</span></h2><h2><span>@GetString("Item.MobileHeader").Replace("[RTXXX]",@productnumber)</span></h2> @if (GetString("Item.Type") == "link") { <span><span class="arrow-link"> @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/icon-arrow-right.svg"))) { <span> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/icon-arrow-right.svg")) @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/icon-arrow-right.svg")) </span> } </span> @GetString("Item.LinkText") </span> } else if (GetString("Item.Type") == "modal-form") { <span><span class="arrow-link"> @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/icon-arrow-right.svg"))) { <span> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/icon-arrow-right.svg")) @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/icon-arrow-right.svg")) </span> } </span> @GetString("Item.FormLinkText") </span> } </a> } </div></div> }
Belægning

Uderumi tegl

Teglbelægning er et ekstremt modstandsdygtigt naturmateriale, der fuldender stilrene uderum som terrasser, havegange og indkørsler. Belægning i tegl patinerer smukt med tiden og er stort set vedligeholdelsesfrit.

icon-arrow-right icon-arrow-right Udlev drømmen om en ny terasse
Mursten

Sundt indeklima

Et fuldmuret hus skabt til det dynamiske familieliv og det skandinaviske klima, fordi mursten kan noget som ingen andre byggematerialer kan. Et sundt indeklima er bare en af fordelene ved et fuldmuret hjem. Mursten skaber et behageligt klima uanset årstiden, er energivenligt og meget modstandsdygtigt.

icon-arrow-right icon-arrow-right Se hvorfor trivsel er noget man bygger

Få ekspertråd

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.