mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-09-22 20:13:50 +08:00
Blog post create cleaned up.
--HG-- extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4043647
This commit is contained in:
@@ -3,5 +3,9 @@ using Orchard.Models;
|
||||
|
||||
namespace Orchard.Core.Common.Models {
|
||||
public class BodyAspect : ContentPart<BodyRecord> {
|
||||
public string Text {
|
||||
get { return Record.Text; }
|
||||
set { Record.Text = value; }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -3,7 +3,13 @@ using Orchard.Models;
|
||||
|
||||
namespace Orchard.Core.Common.Models {
|
||||
public class RoutableAspect : ContentPart<RoutableRecord> {
|
||||
public string Title { get { return Record.Title; } }
|
||||
public string Slug { get { return Record.Slug; } }
|
||||
public string Title {
|
||||
get { return Record.Title; }
|
||||
set { Record.Title = value; }
|
||||
}
|
||||
public string Slug {
|
||||
get { return Record.Slug; }
|
||||
set { Record.Slug = value; }
|
||||
}
|
||||
}
|
||||
}
|
@@ -1,8 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using Orchard.Core.Common.Models;
|
||||
using Orchard.Core.Common.Models;
|
||||
|
||||
namespace Orchard.Core.Common.ViewModels {
|
||||
public class BodyEditorViewModel {
|
||||
|
@@ -3,5 +3,7 @@
|
||||
<%@ Import Namespace="Orchard.Core.Common.Models" %>
|
||||
<%@ Import Namespace="Orchard.Core.Settings.ViewModels" %>
|
||||
<%@ Import Namespace="Orchard.Utility" %>
|
||||
<h3>Body</h3>
|
||||
<ul><li><%=Html.EditorFor(m=>m.Text, Model.TextEditorTemplate) %></li></ul>
|
||||
<fieldset>
|
||||
<label>Body</label>
|
||||
<%=Html.EditorFor(m=>m.Text, Model.TextEditorTemplate) %>
|
||||
</fieldset>
|
Reference in New Issue
Block a user