mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Getting Orchard.Blogs on the new UI composition model (for display)
--HG-- branch : dev
This commit is contained in:
@@ -1,9 +1,7 @@
|
||||
@{
|
||||
IEnumerable<object> blogPosts = Model.BlogPosts;
|
||||
IEnumerable<object> blogPosts = Model.ContentItems;
|
||||
}
|
||||
@Display(ContentItems)
|
||||
@Display(Model.ContentItems)
|
||||
@if (blogPosts == null || blogPosts.Count() < 1) {
|
||||
<p>@T("There are no posts for this blog.")</p>
|
||||
}
|
||||
|
||||
hi
|
||||
}
|
Reference in New Issue
Block a user