Schwarz Pflasterklinker DF

240 x 118 x 52 mm


Pris fra €1,01 pr. stk. Gå til produktside
RT 64 Schwarz Pflasterklinker DF
Grau Pflasterklinker DF

240 x 118 x 52 mm


Pris fra €0,84 pr. stk. Gå til produktside
RT 63 Grau Pflasterklinker DF
Gelb Pflasterklinker DF

240 x 118 x 52 mm


Pris fra €0,81 pr. stk. Gå til produktside
RT 62 Gelb Pflasterklinker DF
Rotbunt Pflasterklinker DF

240 x 118 x 52 mm


Pris fra €0,63 pr. stk. Gå til produktside
RT 61 Rotbunt Pflasterklinker DF
Rot Pflasterklinker DF

240 x 118 x 52 mm


Pris fra €0,59 pr. stk. Gå til produktside
RT 60 Rot Pflasterklinker DF
Rot Gartenziegel

Mit Kohlebrand Farbspiel 228 x 108 x 54 mm


Pris fra €0,46 pr. stk. Gå til produktside
RT 30 Rot Gartenziegel
Schwarz Gartenziegel mit braun Farbspiel

Mit Kohlebrand Farbspiel 228 x 108 x 54 mm


Pris fra €1,04 pr. stk. Gå til produktside
RT 31 Schwarz Gartenziegel mit braun Farbspiel

7 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_df053a92fe8640a788651737b42c7ea4.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_df053a92fe8640a788651737b42c7ea4.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_df053a92fe8640a788651737b42c7ea4.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_df053a92fe8640a788651737b42c7ea4.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_df053a92fe8640a788651737b42c7ea4.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> }
Pflaster

Außenflächen aus Ziegel

Der Ziegelbelag ist ein äußerst widerstandsfähiges Naturmaterial, das stilreine Außenbereiche wie Terrassen, Gartenwege und Einfahrten vollendet. Der Ziegelbelag erhält mit der Zeit eine hübsche Patina und ist so gut wie wartungsfrei.

Lassen Sie den Traum von einer neuen Terrasse wahr werden
Außenflächen
aus Ziegel.
Mauerziegel

Ein gesundes Raumklima

Ein komplett gemauertes Haus für das dynamische Familienleben und das raue Klima, da der Ziegel gegenüber anderen Baumaterialien einzigartige Vorteile hat. Ein gesundes Raumklima ist nur einer der Vorteile eines komplett gemauerten Zuhauses. Die Ziegel sorgen zu allen Jahreszeiten für ein angenehmes Raumklima, sind energiefreundlich und sehr widerstandsfähig.

Warum ist Wohlbefinden etwas, das man baut?
Ein gesundes
Raumklima
.