Error executing template "Designs/TheGift_generated/Paragraph/DevelopmentBlock.cshtml" System.ApplicationException: The process cannot access the file 'D:\dynamicweb.net\Solutions\TheGift\Production\files\Templates\Designs\BackYard\DevBlocks\17328\devBlock.cshtml' because it is being used by another process. at Dynamicweb.Core.Helpers.TextFileHelper.ReadTextFile(String path, Encoding encoding) at Bluedesk.DynamicWeb.ItemTypes.BaseSolution.DevelopmentBlock.GetFile(String currentParagraphID) in C:\vso\TheGift\BluedeskBaseSolution\ClientBase\ItemTypes\Bluedesk.DynamicWeb.ItemTypes.BaseSolution\Elements\DevelopmentBlock.cs:line 73 at Bluedesk.DynamicWeb.ItemTypes.BaseSolution.DevelopmentBlock.GetTemplate(String currentParagraphID, String itemId) in C:\vso\TheGift\BluedeskBaseSolution\ClientBase\ItemTypes\Bluedesk.DynamicWeb.ItemTypes.BaseSolution\Elements\DevelopmentBlock.cs:line 52 at CompiledRazorTemplates.Dynamic.RazorEngine_d6efc67ef32b45199b9b1aa0c6f8a3b1.Execute() in D:\dynamicweb.net\Solutions\TheGift\Production\files\Templates\Designs\TheGift_generated\Paragraph\DevelopmentBlock.cshtml:line 134 at RazorEngine.Templating.TemplateBase.RazorEngine.Templating.ITemplate.Run(ExecuteContext context, TextWriter reader) at RazorEngine.Templating.RazorEngineService.RunCompile(ITemplateKey key, TextWriter writer, Type modelType, Object model, DynamicViewBag viewBag) at RazorEngine.Templating.RazorEngineServiceExtensions.<>c__DisplayClass16_0.<RunCompile>b__0(TextWriter writer) at RazorEngine.Templating.RazorEngineServiceExtensions.WithWriter(Action`1 withWriter) at Dynamicweb.Rendering.RazorTemplateRenderingProvider.Render(Template template) at Dynamicweb.Rendering.TemplateRenderingService.Render(Template template) at Dynamicweb.Rendering.Template.RenderRazorTemplate()
1 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.ParagraphViewModel> 2 @using System.IO; 3 @using Dynamicweb; 4 @using Dynamicweb.Content; 5 @using Dynamicweb.Content.Items; 6 @using Dynamicweb.Security.Permissions; 7 @using Bluedesk.DynamicWeb.ItemTypes; 8 @using Bluedesk.DynamicWeb.ItemTypes.Configuration; 9 @using Bluedesk.DynamicWeb.ItemTypes.Settings.Configuration; 10 @using Dynamicweb.Frontend; 11 @using Dynamicweb.Frontend.Navigation 12 @using Dynamicweb.Ecommerce.ProductCatalog 13 @using Dynamicweb.Environment 14 @using Dynamicweb.Rendering; 15 @using Bluedesk.DynamicWeb.ItemTypes.BaseSolution; 16 17 18 @* 19 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> 20 @using Dynamicweb; 21 @using Dynamicweb.Content.Items; 22 @using Bluedesk.DynamicWeb.ItemTypes; 23 24 @functions { 25 26 Dictionary<string, string> GetFontConfiguration(string TextColor, FontConfigurationItemTab FontConfiguration) 27 { 28 var colorService = new ColorSwatchService(); 29 TextColor = !string.IsNullOrWhiteSpace(TextColor) ? TextColor : "" ; 30 TextColor = !TextColor.Contains("#") ? colorService.GetHexColor(Pageview.AreaID, TextColor) : TextColor; 31 Dictionary<string, string> FontConfig = new Dictionary<string, string>() { 32 { "textColor" , TextColor }, 33 { "fontSize" , FontConfiguration.FontSize }, 34 { "lineHeight", FontConfiguration.LineHeight}, 35 { "fontFamily" , FontConfiguration.FontConfiguration.FontFamily }, 36 { "fontWeight" , FontConfiguration.FontWeight }, 37 { "fontStyle" , FontConfiguration.FontStyle } 38 }; 39 return FontConfig; 40 } 41 42 public string GenerateButtonConfigVariables(ButtonConfiguration BC, MasterConfig mc, int areaId) 43 { 44 string ButtonLabelAlignment = BC.ButtonLabelAlignment; 45 switch (ButtonLabelAlignment) 46 { 47 case "align-left": 48 ButtonLabelAlignment = "flex-start"; 49 break; 50 case "align-center": 51 ButtonLabelAlignment = "center"; 52 break; 53 case "align-right": 54 ButtonLabelAlignment = "flex-end"; 55 break; 56 case "align-full": 57 ButtonLabelAlignment = "space-between"; 58 break; 59 default: 60 ButtonLabelAlignment = "flex-start"; 61 break; 62 } 63 64 var btnStyleBlock = new System.Text.StringBuilder(); 65 66 // General Config 67 btnStyleBlock.Append(GenerateCssVar("btn-min-height", $"{mc.GeneralConfiguration.ButtonHeight}px")); 68 btnStyleBlock.Append(GenerateCssVar("btn-border-radius", $"{mc.GeneralConfiguration.RoundedCornerValue}px")); 69 70 // Button Config 71 btnStyleBlock.Append(GenerateCssVar("btn-border-width", $"{BC.BorderSize.ToString()}px")); 72 btnStyleBlock.Append(GenerateCssVar("btn-label-alignment", ButtonLabelAlignment)); 73 74 // Button Config Tab 75 btnStyleBlock.Append(GenerateCssVar("btn-bg-color", BC.ButtonColorConfiguration.BackgroundColor.GetColorCode(areaId))); 76 btnStyleBlock.Append(GenerateCssVar("btn-font-color", BC.ButtonColorConfiguration.FontColor.GetColorCode(areaId))); 77 btnStyleBlock.Append(GenerateCssVar("btn-border-color", BC.ButtonColorConfiguration.BorderColor.GetColorCode(areaId))); 78 79 // Button Config Hover tab 80 btnStyleBlock.Append(GenerateCssVar("btn-bg-color-hover", BC.ButtonHoverColorConfiguration.BackgroundColor.GetColorCode(areaId))); 81 btnStyleBlock.Append(GenerateCssVar("btn-font-color-hover", BC.ButtonHoverColorConfiguration.FontColor.GetColorCode(areaId))); 82 btnStyleBlock.Append(GenerateCssVar("btn-border-color-hover", BC.ButtonHoverColorConfiguration.BorderColor.GetColorCode(areaId))); 83 84 // Button Config Font Config 85 btnStyleBlock.Append(GenerateCssVar("btn-font-size", BC.FontConfiguration.FontSize)); 86 btnStyleBlock.Append(GenerateCssVar("btn-font-config-color", BC.FontConfiguration.Color.GetColorCode(areaId))); 87 btnStyleBlock.Append(GenerateCssVar("btn-font-line-height", BC.FontConfiguration.LineHeight)); 88 btnStyleBlock.Append(GenerateCssVar("btn-font-family", BC.FontConfiguration.FontConfiguration.FontFamily)); 89 btnStyleBlock.Append(GenerateCssVar("btn-font-weight", BC.FontConfiguration.FontWeight)); 90 btnStyleBlock.Append(GenerateCssVar("btn-font-transform", BC.FontConfiguration.FontStyle)); 91 92 return btnStyleBlock.ToString(); 93 } 94 95 public string GenerateCssVar(string name, string value) 96 { 97 if (!string.IsNullOrWhiteSpace(value)) { 98 return $"--{name}: {value};"; 99 } else { 100 return ""; 101 } 102 } 103 } 104 105 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> 106 @using Dynamicweb; 107 @using Dynamicweb.Content.Items; 108 @using Bluedesk.DynamicWeb.ItemTypes; 109 @using Bluedesk.DynamicWeb.ItemTypes.Extensions; 110 @using Bluedesk.DynamicWeb.ItemTypes.Configuration; 111 @using Bluedesk.DynamicWeb.ItemTypes.Settings.Configuration; 112 @using Dynamicweb; 113 @using Dynamicweb.Frontend 114 @using Bluedesk.DynamicWeb.ItemTypes.BaseSolution; 115 116 @helper RenderButton(CTAButton button, PageView Pageview) 117 { 118 119 if (!string.IsNullOrWhiteSpace(button.GetLink(Pageview))) 120 { 121 string Template = button.GetButtonTemplate().Replace("{{ ButtonLink }}", button.GetLink(Pageview)); 122 @Template; 123 } 124 } 125 *@ 126 127 @{ 128 string currentParagraphID = Pageview.CurrentParagraph.ID.ToString(); 129 string itemId = Pageview.CurrentParagraph.ItemId.ToString(); 130 } 131 132 133 @{ 134 @DevelopmentBlock.GetTemplate(currentParagraphID, itemId) 135 } 136 137
Bestel nu eenvoudig
In onze vernieuwde webshop
Ga naar de webshopDe 2024/2025 is nu online
Bekijk de nieuwe collectie
Ga naar de webshopDuurzame geschenken
Duurzaam geeft leuker
bekijk de collectieLaat uw merk de wereld overgaan
Private label en bedrukking
Ontdek de mogelijkhedenBestel nu eenvoudig
In onze vernieuwde webshop
Ga naar de webshopDe 2024/2025 is nu online
Bekijk de nieuwe collectie
Ga naar de webshopDuurzame geschenken
Duurzaam geeft leuker
bekijk de collectieLaat uw merk de wereld overgaan
Private label en bedrukking
Ontdek de mogelijkhedenWelkom bij The Gift
De leverancier met iets extra's
Maak kennis met onze merken!
Maak kennis met The Gift!
Creatief, innovatief, flexibel, betrouwbaar, no nonsens en een tikkeltje eigenwijs.
The Gift is dé leverancier en oprichter van de merken NORLÄNDER, JENS Living, BRAINZ en KUMAI. Van trolleys, tassen en woonaccessoires tot verzorgings producten, gadgets en elektronica, wij helpen u graag bij het vinden van een passend product voor uw geefmoment of verkooppunt.
Wij onderscheiden ons met mooie, betaalbare collecties en uitstekende service. Ook voor private labels en gepersonaliseerde artikelen bent u bij ons aan het juiste adres. Wij zetten graag een stapje extra, want blij maken zit in ons DNA.
Ontdek de collectie
In onze vernieuwde webshop
Private Label en personalisatie
Laat uw logo of merk de hele wereld overgaan
Bij The Gift bent u aan het juiste adres voor Private Label projecten en personalisatie en bedrukking van voorraadartikelen. Of u nu op zoek bent naar een non-food product voor uw kerstpakket, een relatiegeschenk of promotioneel product, voor bijná ieder budget hebben wij een maatwerk oplossing!
Private Label en personalisatie projecten zijn bij ons helder en efficiënt. Niet eindeloos overleggen, maar vrijblijvende digitale voorstellen, binnen 48 uur.
Een goed en betaalbaar product
dat is waar wij bij The Gift elke dag naar streven.
Ontdek onze duurzame
Collectie
De herkomst van de grondstoffen, de arbeidsomstandigheden in de fabrieken en het milieubeleid van de fabriek heeft een steeds grotere impact tijdens de ontwikkeling en productie van onze collecties. Niet alleen voor ons, maar ook voor u, want de vraag naar duurzame producten en diensten blijft stijgen.
-
151+
producten
uit onze collectie zijn gemaakt van duurzame materialen.
-
100%
van onze collectie
is geproduceerd volgens de BSCI voorschriften en richtlijnen.
-
2,2
ton co2 reductie
door efficiëntie op het transport- en container beleid.
-
100%
duurzaamheidsambitie
Samen willen wij groeien naar een duurzame toekomst.