mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Swapped out Orchard.Core's Common Routable for the work in progress replacement, Orchard.Core's Routable (seperate core module now)
--HG-- branch : dev
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
using System.Web.Mvc;
|
||||
using Orchard.Core.Common.Models;
|
||||
using Orchard.ContentManagement;
|
||||
using Orchard.Core.Routable.Models;
|
||||
|
||||
namespace Orchard.Blogs.Models {
|
||||
public class Blog : ContentPart<BlogRecord> {
|
||||
@@ -8,14 +8,14 @@ namespace Orchard.Blogs.Models {
|
||||
public int Id { get { return ContentItem.Id; } }
|
||||
|
||||
public string Name {
|
||||
get { return this.As<RoutableAspect>().Title; }
|
||||
set { this.As<RoutableAspect>().Title = value; }
|
||||
get { return this.As<IsRoutable>().Title; }
|
||||
set { this.As<IsRoutable>().Title = value; }
|
||||
}
|
||||
|
||||
//TODO: (erikpo) Need a data type for slug
|
||||
public string Slug {
|
||||
get { return this.As<RoutableAspect>().Slug; }
|
||||
set { this.As<RoutableAspect>().Slug = value; }
|
||||
get { return this.As<IsRoutable>().Slug; }
|
||||
set { this.As<IsRoutable>().Slug = value; }
|
||||
}
|
||||
|
||||
public string Description {
|
||||
|
@@ -3,6 +3,7 @@ using System.Web.Mvc;
|
||||
using Orchard.ContentManagement;
|
||||
using Orchard.ContentManagement.Aspects;
|
||||
using Orchard.Core.Common.Models;
|
||||
using Orchard.Core.Routable.Models;
|
||||
using Orchard.Security;
|
||||
|
||||
namespace Orchard.Blogs.Models {
|
||||
@@ -13,13 +14,13 @@ namespace Orchard.Blogs.Models {
|
||||
}
|
||||
|
||||
public string Title {
|
||||
get { return this.As<RoutableAspect>().Title; }
|
||||
set { this.As<RoutableAspect>().Title = value; }
|
||||
get { return this.As<IsRoutable>().Title; }
|
||||
set { this.As<IsRoutable>().Title = value; }
|
||||
}
|
||||
|
||||
public string Slug {
|
||||
get { return this.As<RoutableAspect>().Slug; }
|
||||
set { this.As<RoutableAspect>().Slug = value; }
|
||||
get { return this.As<IsRoutable>().Slug; }
|
||||
set { this.As<IsRoutable>().Slug = value; }
|
||||
}
|
||||
|
||||
public string Text {
|
||||
|
Reference in New Issue
Block a user