mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-09-23 12:53:33 +08:00
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:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user