mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Fix profiling setup
"build profiling" is back to a working state. --HG-- branch : dev
This commit is contained in:
@@ -2,6 +2,7 @@ using JetBrains.Annotations;
|
||||
using Orchard.Blogs.Drivers;
|
||||
using Orchard.Blogs.Models;
|
||||
using Orchard.ContentManagement.Handlers;
|
||||
using Orchard.Core.Common.Models;
|
||||
using Orchard.Core.Routable.Models;
|
||||
using Orchard.Data;
|
||||
|
||||
@@ -10,6 +11,7 @@ namespace Orchard.Blogs.Handlers {
|
||||
public class BlogHandler : ContentHandler {
|
||||
public BlogHandler(IRepository<BlogRecord> repository) {
|
||||
Filters.Add(new ActivatingFilter<Blog>(BlogDriver.ContentType.Name));
|
||||
Filters.Add(new ActivatingFilter<CommonAspect>(BlogDriver.ContentType.Name));
|
||||
Filters.Add(new ActivatingFilter<IsRoutable>(BlogDriver.ContentType.Name));
|
||||
Filters.Add(StorageFilter.For(repository));
|
||||
}
|
||||
|
@@ -28,6 +28,7 @@ namespace Orchard.DevTools.Commands {
|
||||
var page = _contentManager.Create("Page", VersionOptions.Draft);
|
||||
page.As<ICommonAspect>().Owner = admin;
|
||||
page.As<IsRoutable>().Slug = pageName;
|
||||
page.As<IsRoutable>().Path = pageName;
|
||||
page.As<IsRoutable>().Title = pageName;
|
||||
page.As<BodyAspect>().Text = pageName;
|
||||
page.As<MenuPart>().OnMainMenu = true;
|
||||
@@ -39,6 +40,7 @@ namespace Orchard.DevTools.Commands {
|
||||
var blog = _contentManager.New("Blog");
|
||||
blog.As<ICommonAspect>().Owner = admin;
|
||||
blog.As<IsRoutable>().Slug = blogName;
|
||||
blog.As<IsRoutable>().Path = blogName;
|
||||
blog.As<IsRoutable>().Title = blogName;
|
||||
blog.As<MenuPart>().OnMainMenu = true;
|
||||
blog.As<MenuPart>().MenuPosition = "6." + index;
|
||||
|
Reference in New Issue
Block a user