Try your search with a different keyword or use * as a wildcard.
@model Nop.Web.Models.Boards.SearchModel
@using Nop.Core.Domain.Forums
@using Nop.Services.Localization
@using Nop.Web.Factories
@using Nop.Web.Framework.TagHelpers.Shared
@using Microsoft.AspNetCore.Mvc.TagHelpers
@inject ILocalizationService localizationService
@{
Layout = "_ColumnsOne";
//title
NopHtml.AddTitleParts(T("Forum.PageTitle.Search").Text);
//page class
NopHtml.AppendPageCssClassParts("html-forum-search-page");
}
@await Component.InvokeAsync(typeof(ForumBreadcrumbViewComponent))
@T("Forum.Search")
@await Component.InvokeAsync(typeof(WidgetViewComponent), new { widgetZone = PublicWidgetZones.BoardsSearchBeforeSearchform, additionalData = Model })
@await Component.InvokeAsync(typeof(WidgetViewComponent), new { widgetZone = PublicWidgetZones.BoardsSearchAfterSearchform, additionalData = Model })
@Model.Error
@{
var searchterms = Model.SearchTerms;
string advs = null;
string within = null;
string limitDays = null;
string forumId = null;
if (Model.ShowAdvancedSearch)
{
advs = "true";
within = Model.WithinSelected.ToString();
limitDays = Model.LimitDaysSelected.ToString();
forumId = Model.ForumIdSelected.ToString();
}
var pager = await Html.PagerAsync(new PagerModel(localizationService)
{
PageSize = Model.TopicPageSize,
TotalRecords = Model.TopicTotalRecords,
PageIndex = Model.TopicPageIndex,
ShowTotalSummary = false,
RouteActionName = "Search",
RouteValues = new ForumModelFactory.ForumSearchRouteValues { Advs = advs, Searchterms = searchterms, ForumId = forumId, Within = within, LimitDays = limitDays },
});
}
@await Component.InvokeAsync(typeof(WidgetViewComponent), new { widgetZone = PublicWidgetZones.BoardsSearchBeforeResults, additionalData = Model })
@if (!string.IsNullOrEmpty(await pager.RenderHtmlContentAsync()))
{
@pager
}
@if (Model.NoResultsVisisble)
{
@T("Forum.SearchNoResultsText")
}
@if (Model.SearchResultsVisible)
{
@if (Model.AllowPostVoting)
{
}
@T("Forum.TopicTitle")
@T("Forum.Replies")
@T("Forum.Views")
@if (Model.AllowPostVoting)
{
@T("Forum.Votes")
}
@T("Forum.LatestPost")
@foreach (var topic in @Model.ForumTopics)
{
var topicType = "post";
var topicText = string.Empty;
switch (topic.ForumTopicType)
{
case ForumTopicType.Normal:
topicType = "post";
break;
case ForumTopicType.Sticky:
topicType = "sticky";
topicText = $"[{T("Forum.Sticky")}]";
break;
case ForumTopicType.Announcement:
topicType = "announcement";
topicText = $"[{T("Forum.Announcement")}]";
break;
default:
topicType = "post";
break;
}
@Html.RouteLink(topic.Subject, "TopicSlug", new { id = topic.Id, slug = topic.SeName })
@if (!string.IsNullOrEmpty(topicText))
{
@topicText
}
@if (topic.NumPosts > Model.PostsPageSize)
{
@await Html.ForumTopicSmallPagerAsync(topic)
}
@if (topic.CustomerId > 0)
{
if (topic.AllowViewingProfiles)
{
@Html.RouteLink(topic.CustomerName, "CustomerProfile", new { Id = topic.CustomerId })
}
else
{
@topic.CustomerName
}
}
@topic.NumReplies
@topic.Views
@if (Model.AllowPostVoting)
{
@topic.Votes
}
@await Component.InvokeAsync(typeof(ForumLastPostViewComponent), new { forumPostId = topic.LastPostId, showTopic = false })
}
}
@if (!string.IsNullOrEmpty(await pager.RenderHtmlContentAsync()))
{
@pager
}
@await Component.InvokeAsync(typeof(WidgetViewComponent), new { widgetZone = PublicWidgetZones.BoardsSearchAfterResults, additionalData = Model })