2010-07-08 15:47:20 -07:00
|
|
|
|
using JetBrains.Annotations;
|
2010-01-10 11:18:28 +00:00
|
|
|
|
using Orchard.ContentManagement;
|
2010-07-13 02:52:02 -07:00
|
|
|
|
using Orchard.Core.Routable.Models;
|
2010-01-22 22:25:52 +00:00
|
|
|
|
using Orchard.Localization;
|
2010-01-07 01:06:17 +00:00
|
|
|
|
using Orchard.Core.Common.Models;
|
|
|
|
|
using Orchard.ContentManagement.Handlers;
|
2010-03-03 23:31:42 -08:00
|
|
|
|
using Orchard.Pages.Drivers;
|
|
|
|
|
using Orchard.Pages.Models;
|
2010-01-22 22:25:52 +00:00
|
|
|
|
using Orchard.Pages.Services;
|
2010-01-07 01:06:17 +00:00
|
|
|
|
|
2010-03-03 23:31:42 -08:00
|
|
|
|
namespace Orchard.Pages.Handlers {
|
|
|
|
|
[UsedImplicitly]
|
2010-01-07 01:06:17 +00:00
|
|
|
|
public class PageHandler : ContentHandler {
|
2010-01-22 22:25:52 +00:00
|
|
|
|
private readonly IPageService _pageService;
|
|
|
|
|
|
2010-07-08 15:47:20 -07:00
|
|
|
|
public PageHandler(IPageService pageService) {
|
2010-01-22 22:25:52 +00:00
|
|
|
|
_pageService = pageService;
|
|
|
|
|
T = NullLocalizer.Instance;
|
|
|
|
|
|
2010-01-07 01:06:17 +00:00
|
|
|
|
Filters.Add(new ActivatingFilter<Page>(PageDriver.ContentType.Name));
|
|
|
|
|
Filters.Add(new ActivatingFilter<CommonAspect>(PageDriver.ContentType.Name));
|
2010-01-10 11:18:28 +00:00
|
|
|
|
Filters.Add(new ActivatingFilter<ContentPart<CommonVersionRecord>>(PageDriver.ContentType.Name));
|
2010-07-13 02:52:02 -07:00
|
|
|
|
Filters.Add(new ActivatingFilter<IsRoutable>(PageDriver.ContentType.Name));
|
2010-01-07 01:06:17 +00:00
|
|
|
|
Filters.Add(new ActivatingFilter<BodyAspect>(PageDriver.ContentType.Name));
|
2010-01-22 22:25:52 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Localizer T { get; set; }
|
2010-01-07 01:06:17 +00:00
|
|
|
|
}
|
|
|
|
|
}
|