mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
Changing the default content part zone to "Content"
--HG-- branch : dev
This commit is contained in:
@@ -7,7 +7,7 @@ using Orchard.DisplayManagement;
|
|||||||
namespace Orchard.ContentManagement.Drivers {
|
namespace Orchard.ContentManagement.Drivers {
|
||||||
public abstract class ContentPartDriver<TContent> : IContentPartDriver where TContent : ContentPart, new() {
|
public abstract class ContentPartDriver<TContent> : IContentPartDriver where TContent : ContentPart, new() {
|
||||||
protected virtual string Prefix { get { return ""; } }
|
protected virtual string Prefix { get { return ""; } }
|
||||||
protected virtual string Zone { get { return "Primary"; } }
|
protected virtual string Zone { get { return "Content"; } }
|
||||||
|
|
||||||
DriverResult IContentPartDriver.BuildDisplay(BuildDisplayContext context) {
|
DriverResult IContentPartDriver.BuildDisplay(BuildDisplayContext context) {
|
||||||
var part = context.ContentItem.As<TContent>();
|
var part = context.ContentItem.As<TContent>();
|
||||||
@@ -45,7 +45,6 @@ namespace Orchard.ContentManagement.Drivers {
|
|||||||
return ContentShapeImplementation(shapeType, null, ctx=>factory(CreateShape(ctx, shapeType)));
|
return ContentShapeImplementation(shapeType, null, ctx=>factory(CreateShape(ctx, shapeType)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public ContentShapeResult ContentShape(string shapeType, string defaultLocation, Func<dynamic, dynamic> factory) {
|
public ContentShapeResult ContentShape(string shapeType, string defaultLocation, Func<dynamic, dynamic> factory) {
|
||||||
return ContentShapeImplementation(shapeType, defaultLocation, factory);
|
return ContentShapeImplementation(shapeType, defaultLocation, factory);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user