From 13d921a6489e29198d6ccc76ca81186a82fb20cb Mon Sep 17 00:00:00 2001 From: Suha Can Date: Tue, 31 May 2011 12:20:43 -0700 Subject: [PATCH] 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 --- .../Modules/Orchard.Blogs/Drivers/RecentBlogPostsPartDriver.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Orchard.Web/Modules/Orchard.Blogs/Drivers/RecentBlogPostsPartDriver.cs b/src/Orchard.Web/Modules/Orchard.Blogs/Drivers/RecentBlogPostsPartDriver.cs index 1dec86e46..093ba4cf4 100644 --- a/src/Orchard.Web/Modules/Orchard.Blogs/Drivers/RecentBlogPostsPartDriver.cs +++ b/src/Orchard.Web/Modules/Orchard.Blogs/Drivers/RecentBlogPostsPartDriver.cs @@ -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) {