mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-01-07 10:14:43 +08:00
Restoring BlogPart.Name
This commit is contained in:
@@ -1,7 +1,13 @@
|
|||||||
using Orchard.ContentManagement;
|
using Orchard.ContentManagement;
|
||||||
|
using Orchard.ContentManagement.Aspects;
|
||||||
|
|
||||||
namespace Orchard.Blogs.Models {
|
namespace Orchard.Blogs.Models {
|
||||||
public class BlogPart : ContentPart<BlogPartRecord> {
|
public class BlogPart : ContentPart<BlogPartRecord> {
|
||||||
|
|
||||||
|
public string Name {
|
||||||
|
get { return this.As<ITitleAspect>().Title; }
|
||||||
|
}
|
||||||
|
|
||||||
public string Description {
|
public string Description {
|
||||||
get { return Retrieve(x => x.Description); }
|
get { return Retrieve(x => x.Description); }
|
||||||
set { Store(x => x.Description, value); }
|
set { Store(x => x.Description, value); }
|
||||||
|
|||||||
Reference in New Issue
Block a user