mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00

--HG-- extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4043450
21 lines
787 B
C#
21 lines
787 B
C#
using System.Collections.Generic;
|
|
using Orchard.Core.Common.Models;
|
|
using Orchard.Data;
|
|
using Orchard.Models;
|
|
using Orchard.Models.Driver;
|
|
|
|
namespace Orchard.Blogs.Models {
|
|
public class BlogProvider : ContentProvider {
|
|
public override IEnumerable<ContentType> GetContentTypes() {
|
|
return new[] { Blog.ContentType };
|
|
}
|
|
|
|
public BlogProvider(IRepository<BlogRecord> repository) {
|
|
Filters.Add(new ActivatingFilter<Blog>("blog"));
|
|
Filters.Add(new ActivatingFilter<CommonAspect>("blog"));
|
|
Filters.Add(new ActivatingFilter<RoutableAspect>("blog"));
|
|
Filters.Add(new StorageFilter<BlogRecord>(repository));
|
|
Filters.Add(new ContentItemTemplates<Blog>("Blog"));
|
|
}
|
|
}
|
|
} |