mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
#19878: Adding default driver prefix, derived from the part's name
Work Item: 19878
This commit is contained in:
@@ -9,7 +9,7 @@ using Orchard.DisplayManagement.Shapes;
|
||||
|
||||
namespace Orchard.ContentManagement.Drivers {
|
||||
public abstract class ContentPartDriver<TContent> : IContentPartDriver where TContent : ContentPart, new() {
|
||||
protected virtual string Prefix { get { return ""; } }
|
||||
protected virtual string Prefix { get { return typeof(TContent).Name; } }
|
||||
|
||||
void IContentPartDriver.GetContentItemMetadata(GetContentItemMetadataContext context) {
|
||||
var part = context.ContentItem.As<TContent>();
|
||||
|
Reference in New Issue
Block a user