Contribution by mspring.

Added the BlogPart to the shape model of RecentBlogPostsPart just the same way
as being done in BlogArchivesPartDriver.
This enables the use of Html.ItemDisplayLink((IContent)Model.Blog) inside
overwritten shapes which want to show a link to the entire blog.

--HG--
branch : contributions
This commit is contained in:
Suha Can
2011-05-31 12:20:43 -07:00
parent 97b01b14d9
commit 13d921a648
@@ -43,7 +43,7 @@ namespace Orchard.Blogs.Drivers {
var blogPostList = shapeHelper.Parts_Blogs_BlogPost_List(ContentPart: part, ContentItems: list);
return ContentShape(shapeHelper.Parts_Blogs_RecentBlogPosts(ContentItem: part.ContentItem, ContentItems: blogPostList));
return ContentShape(shapeHelper.Parts_Blogs_RecentBlogPosts(ContentItem: part.ContentItem, ContentItems: blogPostList, Blog: blog));
}
protected override DriverResult Editor(RecentBlogPostsPart part, dynamic shapeHelper) {