mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 03:25:23 +08:00
- Fixing a minor issue from refactoring.
--HG-- extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4043130
This commit is contained in:
@@ -113,7 +113,7 @@ namespace Orchard.Tags.Controllers {
|
|||||||
IEnumerable<IContent> contents = _tagService.GetTaggedContentItems(tag.Id).ToList();
|
IEnumerable<IContent> contents = _tagService.GetTaggedContentItems(tag.Id).ToList();
|
||||||
var viewModel = new TagsSearchViewModel {
|
var viewModel = new TagsSearchViewModel {
|
||||||
TagName = tag.TagName,
|
TagName = tag.TagName,
|
||||||
Contents = contents.Select(x=>_contentManager.GetDisplayViewModel(x, null, "SummaryTag")),
|
Contents = contents
|
||||||
};
|
};
|
||||||
return View(viewModel);
|
return View(viewModel);
|
||||||
|
|
||||||
|
@@ -6,6 +6,6 @@ using Orchard.Mvc.ViewModels;
|
|||||||
namespace Orchard.Tags.ViewModels {
|
namespace Orchard.Tags.ViewModels {
|
||||||
public class TagsSearchViewModel : BaseViewModel {
|
public class TagsSearchViewModel : BaseViewModel {
|
||||||
public string TagName { get; set; }
|
public string TagName { get; set; }
|
||||||
public IEnumerable<ItemDisplayViewModel<IContent>> Contents { get; set; }
|
public IEnumerable<IContent> Contents { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -6,6 +6,6 @@
|
|||||||
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
|
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
|
||||||
<h2>List of contents tagged with <%= Model.TagName %></h2><%
|
<h2>List of contents tagged with <%= Model.TagName %></h2><%
|
||||||
foreach (var contentItem in Model.Contents) { %>
|
foreach (var contentItem in Model.Contents) { %>
|
||||||
<%=Html.DisplayForItem(x=>contentItem)%><%
|
<%=Html.ItemDisplayLink(contentItem)%>
|
||||||
} %>
|
<% } %>
|
||||||
</asp:Content>
|
</asp:Content>
|
Reference in New Issue
Block a user