Webiant Logo Webiant Logo
  1. No results found.

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

Forum.cshtml

@model ForumSettingsModel

@{
    //page title
    ViewBag.PageTitle = T("Admin.Configuration.Settings.Forums").Text;
    //active menu item (system name)
    NopHtml.SetActiveMenuItemSystemName("Forums settings");
}

@{
    const string hideCommonBlockAttributeName = "ForumSettingsPage.HideCommonBlock";
    var customer = await workContext.GetCurrentCustomerAsync();
    var hideCommonBlock = await genericAttributeService.GetAttributeAsync(customer, hideCommonBlockAttributeName);

    const string hidePermissionsBlockAttributeName = "ForumSettingsPage.HidePermissionsBlock";
    var hidePermissionsBlock = await genericAttributeService.GetAttributeAsync(customer, hidePermissionsBlockAttributeName);

    const string hidePageSizesBlockAttributeName = "ForumSettingsPage.HidePageSizesBlock";
    var hidePageSizesBlock = await genericAttributeService.GetAttributeAsync(customer, hidePageSizesBlockAttributeName);

    const string hideFeedsBlockAttributeName = "ForumSettingsPage.HideFeedsBlock";
    var hideFeedsBlock = await genericAttributeService.GetAttributeAsync(customer, hideFeedsBlockAttributeName);
}

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

@await Component.InvokeAsync(typeof(AdminWidgetViewComponent), new { widgetZone = AdminWidgetZones.ForumSettingsButtons, additionalData = Model })
@await Component.InvokeAsync(typeof(StoreScopeConfigurationViewComponent)) @await Component.InvokeAsync(typeof(SettingModeViewComponent))
@await Html.PartialAsync("_Forum.Common", Model) @await Html.PartialAsync("_Forum.Permissions", Model) @await Html.PartialAsync("_Forum.PageSizes", Model) @await Html.PartialAsync("_Forum.Feeds", Model) @await Component.InvokeAsync(typeof(AdminWidgetViewComponent), new { widgetZone = AdminWidgetZones.ForumSettingsDetailsBlock, additionalData = Model })