@model BlogPostModel @{ const string hideInfoBlockAttributeName = "BlogPostPage.HideInfoBlock"; var customer = await workContext.GetCurrentCustomerAsync(); var hideInfoBlock = await genericAttributeService.GetAttributeAsync(customer, hideInfoBlockAttributeName); const string hideSeoBlockAttributeName = "BlogPostPage.HideSEOBlock"; var hideSeoBlock = await genericAttributeService.GetAttributeAsync(customer, hideSeoBlockAttributeName, defaultValue: true); }
@await Html.PartialAsync("_CreateOrUpdate.Info", Model) @await Html.PartialAsync("_CreateOrUpdate.Seo", Model) @await Component.InvokeAsync(typeof(AdminWidgetViewComponent), new { widgetZone = AdminWidgetZones.BlogPostDetailsBlock, additionalData = Model })