Cleaning up Page and Blog Post templates

- Broke manage and metadata template parts into their own respective display templates for both content types
- Simplified the display template for each to contain only the page title and zones (primary w/ manage and metadata partitions and the remainder)
- Removed themed templates that were made redundant with this cleanup

--HG--
branch : dev
This commit is contained in:
Nathan Heskew
2010-03-01 16:13:02 -08:00
parent 9c86a8d552
commit b9cc05da25
16 changed files with 44 additions and 54 deletions

View File

@@ -64,7 +64,10 @@ namespace Orchard.Blogs.Controllers {
}
protected override DriverResult Display(BlogPost post, string displayType) {
return ContentItemTemplate("Items/Blogs.BlogPost").LongestMatch(displayType, "Summary", "SummaryAdmin");
return Combined(
ContentItemTemplate("Items/Blogs.BlogPost").LongestMatch(displayType, "Summary", "SummaryAdmin"),
ContentPartTemplate(post, "Parts/Blogs.BlogPost.Manage").Location("primary:manage"),
ContentPartTemplate(post, "Parts/Blogs.BlogPost.Metadata").Location("primary:metadata"));
}
protected override DriverResult Editor(BlogPost post) {