mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Adjusting the template zone location for the comment count and blog post metadata templates
--HG-- branch : dev
This commit is contained in:
@@ -62,7 +62,7 @@ namespace Orchard.Blogs.Drivers {
|
||||
protected override DriverResult Display(BlogPost post, string displayType) {
|
||||
return Combined(
|
||||
ContentItemTemplate("Items/Blogs.BlogPost").LongestMatch(displayType, "Summary", "SummaryAdmin"),
|
||||
ContentPartTemplate(post, "Parts/Blogs.BlogPost.Metadata").LongestMatch(displayType, "Summary", "SummaryAdmin").Location("meta"));
|
||||
ContentPartTemplate(post, "Parts/Blogs.BlogPost.Metadata").LongestMatch(displayType, "Summary", "SummaryAdmin").Location("meta", "1"));
|
||||
}
|
||||
|
||||
protected override DriverResult Editor(BlogPost post) {
|
||||
|
@@ -26,7 +26,7 @@ namespace Orchard.Comments.Drivers {
|
||||
}
|
||||
else if (displayType.Contains("Summary")) {
|
||||
var model = new CommentCountViewModel(part);
|
||||
return ContentPartTemplate(model, "Parts/Comments.Count").Location("meta");
|
||||
return ContentPartTemplate(model, "Parts/Comments.Count").Location("meta", "5");
|
||||
}
|
||||
else {
|
||||
var model = new CommentCountViewModel(part);
|
||||
|
Reference in New Issue
Block a user