mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Adding a couple of spec tests for Blogs and fixint the Blogs.RemotePublishing template
--HG-- branch : dev
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
using JetBrains.Annotations;
|
||||
using Orchard.Blogs.Models;
|
||||
using Orchard.ContentManagement;
|
||||
using Orchard.ContentManagement.Aspects;
|
||||
using Orchard.ContentManagement.Drivers;
|
||||
using Orchard.Environment.Extensions;
|
||||
|
||||
@@ -10,7 +8,7 @@ namespace Orchard.Blogs.Drivers {
|
||||
[OrchardFeature("Orchard.Blogs.RemotePublishing")]
|
||||
public class RemoteBlogPublishingDriver : ContentPartDriver<BlogPart> {
|
||||
protected override DriverResult Display(BlogPart part, string displayType, dynamic shapeHelper) {
|
||||
return ContentShape("Parts_Blogs_RemotePublishing", shape => shape.Path(part.As<IRoutableAspect>().Path));
|
||||
return ContentShape("Parts_Blogs_RemotePublishing", shape => shape.Blog(part));
|
||||
}
|
||||
}
|
||||
}
|
@@ -2,7 +2,7 @@
|
||||
@using Orchard.Blogs.Models;
|
||||
@using Orchard.UI.Resources;
|
||||
@{
|
||||
BlogPart blog = Model;
|
||||
BlogPart blog = Model.Blog;
|
||||
RegisterLink(new LinkEntry { Rel = "wlwmanifest", Type = "application/wlwmanifest+xml", Href = Url.BlogLiveWriterManifest(blog) });
|
||||
RegisterLink(new LinkEntry { Rel = "EditURI", Type = "application/rsd+xml", Title = "RSD", Href = Url.BlogRsd(blog) });
|
||||
}
|
Reference in New Issue
Block a user