mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
- Bringing the Comments module back.
--HG-- branch : dev
This commit is contained in:
@@ -1,20 +1,10 @@
|
||||
using JetBrains.Annotations;
|
||||
using Orchard.Comments.Models;
|
||||
using Orchard.ContentManagement;
|
||||
using Orchard.ContentManagement.Drivers;
|
||||
|
||||
namespace Orchard.Comments.Drivers {
|
||||
[UsedImplicitly]
|
||||
public class CommentPartDriver : ContentItemDriver<CommentPart> {
|
||||
public readonly static ContentType ContentType = new ContentType {
|
||||
Name = "Comment",
|
||||
DisplayName = "Comment"
|
||||
};
|
||||
|
||||
protected override ContentType GetContentType() {
|
||||
return ContentType;
|
||||
}
|
||||
|
||||
protected override string Prefix { get { return ""; } }
|
||||
public class CommentPartDriver : ContentPartDriver<CommentPart> {
|
||||
protected override string Prefix { get { return "Comments"; } }
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user