@model BlogSettingsModel @{ //page title ViewBag.PageTitle = T("Admin.Configuration.Settings.Blog").Text; //active menu item (system name) NopHtml.SetActiveMenuItemSystemName("Blog settings"); } @{ const string hideCommonBlockAttributeName = "BlogSettingsPage.HideCommonBlock"; var customer = await workContext.GetCurrentCustomerAsync(); var hideCommonBlock = await genericAttributeService.GetAttributeAsync(customer, hideCommonBlockAttributeName); const string hideCommentsBlockAttributeName = "BlogSettingsPage.HideCommentsBlock"; var hideCommentsBlock = await genericAttributeService.GetAttributeAsync(customer, hideCommentsBlockAttributeName); }

@T("Admin.Configuration.Settings.Blog")

@await Component.InvokeAsync(typeof(AdminWidgetViewComponent), new { widgetZone = AdminWidgetZones.BlogSettingsButtons, additionalData = Model })
@await Component.InvokeAsync(typeof(StoreScopeConfigurationViewComponent)) @await Component.InvokeAsync(typeof(SettingModeViewComponent))
@await Html.PartialAsync("_Blog.Common", Model) @await Html.PartialAsync("_Blog.Comments", Model) @await Component.InvokeAsync(typeof(AdminWidgetViewComponent), new { widgetZone = AdminWidgetZones.BlogDetailsBlock, additionalData = Model })