Branding Stylesheet

Footer Default Large

Regular

Error executing template "Designs/4tecx_generated/Paragraph/FooterWidgetMenu.cshtml"
System.ArgumentNullException: Value cannot be null.
Parameter name: String
   at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
   at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
   at CompiledRazorTemplates.Dynamic.RazorEngine_f4bed96726ad4090b9fd7a5d1fbb437e.Execute() in E:\Dynamicweb.NET\4Tecx\Production\host\files\Templates\Designs\4tecx_generated\Paragraph\FooterWidgetMenu.cshtml:line 26
   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 3 @using Dynamicweb; 4 @using Dynamicweb.Content.Items; 5 6 @using Bluedesk.DynamicWeb.ItemTypes; 7 @using Dynamicweb.Frontend.Navigation 8 @using Bluedesk.DynamicWeb.ItemTypes.BaseSolution; 9 10 @using Dynamicweb.Frontend; 11 12 13 @{ 14 15 string paragraphID = Model.ItemId; 16 FooterWidgetMenu _data = Dynamicweb.Services.Items.GetItem("FooterWidgetMenu", paragraphID).ToCodeFirstItem<FooterWidgetMenu>(); 17 18 } 19 20 <div class="footer__link footer__link--@paragraphID @_data.CssClass"> 21 @{ 22 var FooterMenuNavigationSettings = new NavigationSettings(); 23 FooterMenuNavigationSettings.ExpandMode = ExpandMode.All; 24 FooterMenuNavigationSettings.StartLevel = _data.StartLevel; 25 FooterMenuNavigationSettings.StopLevel = _data.StopLevel; 26 FooterMenuNavigationSettings.RootPageId = int.Parse(_data.MenuRootPageId); 27 var FooterMenuNavigation = Navigation.RenderNavigation("Navigation/BottomNavigation.cshtml", FooterMenuNavigationSettings); 28 29 if (!string.IsNullOrWhiteSpace(_data.Header().HeaderFormatted("footer__link-header"))) 30 { 31 @_data.Header().HeaderFormatted("footer__link-header") 32 } 33 34 if (!string.IsNullOrEmpty(FooterMenuNavigation)) 35 { 36 @FooterMenuNavigation 37 } 38 39 } 40 </div> 41 42 <style> 43 44 .footer__link { 45 --ColumnCount: 1; 46 column-count: var(--ColumnCount); 47 } 48 49 .footer__link--@paragraphID { 50 --ColumnCount: @_data.Columns; 51 } 52 53 .footer__link-list { 54 --FlexDirection: column; 55 56 display: flex; 57 58 padding: 0; 59 margin: 0; 60 61 flex-direction: var(--FlexDirection); 62 63 } 64 65 .footer__link--@paragraphID .footer__link-list { 66 --FlexDirection: @_data.MenuDirection; 67 } 68 69 </style> 70
Cookies

Wij gebruiken cookies om onze website zo gebruiksvriendelijk mogelijk te maken en om de inhoud naar uw voorkeur te personaliseren.

Voor het plaatsen van tracking cookies vragen we uw toestemming. Tracking cookies zijn nodig om ervoor te zorgen dat uw bezoek aan de website wordt gemeten.

Door op 'accepteer' te klikken, geeft u ons toestemming voor het plaatsen van tracking cookies.

U kunt uw instellingen op elk moment wijzigen via cookie-instellingen. Lees hier meer over ons privacybeleid.