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

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

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