Blog post create cleaned up.

--HG--
extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4043647
This commit is contained in:
skewed
2009-12-10 01:49:09 +00:00
parent 73a1740817
commit c676842309
13 changed files with 50 additions and 54 deletions

View File

@@ -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; }
}
}
}

View File

@@ -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; }
}
}
}

View File

@@ -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 {

View File

@@ -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>