Webiant Logo Webiant Logo
  1. No results found.

    Try your search with a different keyword or use * as a wildcard.

_CreateOrUpdate.cshtml

@model TopicModel

@{
    var showTour = ViewBag.ShowTour ?? false;

    const string hideInfoBlockAttributeName = "TopicDetailsPage.HideInfoBlock";
    var customer = await workContext.GetCurrentCustomerAsync();
    var hideInfoBlock = showTour ? false : await genericAttributeService.GetAttributeAsync(customer, hideInfoBlockAttributeName);

    const string hideDisplayBlockAttributeName = "TopicDetailsPage.HideDisplayBlock";
    var hideDisplayBlock = await genericAttributeService.GetAttributeAsync(customer, hideDisplayBlockAttributeName, defaultValue: true);

    const string hideSeoBlockAttributeName = "TopicDetailsPage.HideSeoBlock";
    var hideSeoBlock = await genericAttributeService.GetAttributeAsync(customer, hideSeoBlockAttributeName, defaultValue: true);
}

@await Component.InvokeAsync(typeof(SettingModeViewComponent), new { modeName = "topic-advanced-mode" })
@await Html.PartialAsync("_CreateOrUpdate.Info", Model) @await Html.PartialAsync("_CreateOrUpdate.Display", Model) @await Html.PartialAsync("_CreateOrUpdate.Seo", Model) @await Component.InvokeAsync(typeof(AdminWidgetViewComponent), new { widgetZone = AdminWidgetZones.TopicDetailsBlock, additionalData = Model })