mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-01-23 05:12:09 +08:00
Enabling tags and comments on pages.
--HG-- extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4045999
This commit is contained in:
@@ -15,6 +15,7 @@ namespace Orchard.Comments.Models {
|
|||||||
|
|
||||||
Filters.Add(new ActivatingFilter<HasComments>("sandboxpage"));
|
Filters.Add(new ActivatingFilter<HasComments>("sandboxpage"));
|
||||||
Filters.Add(new ActivatingFilter<HasComments>("blogpost"));
|
Filters.Add(new ActivatingFilter<HasComments>("blogpost"));
|
||||||
|
Filters.Add(new ActivatingFilter<HasComments>("page"));
|
||||||
Filters.Add(StorageFilter.For(hasCommentsRepository));
|
Filters.Add(StorageFilter.For(hasCommentsRepository));
|
||||||
|
|
||||||
OnActivated<HasComments>((ctx, x) => {
|
OnActivated<HasComments>((ctx, x) => {
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ namespace Orchard.Tags.Models {
|
|||||||
public HasTagsHandler(IRepository<Tag> tagsRepository, IRepository<TagsContentItems> tagsContentItemsRepository) {
|
public HasTagsHandler(IRepository<Tag> tagsRepository, IRepository<TagsContentItems> tagsContentItemsRepository) {
|
||||||
Filters.Add(new ActivatingFilter<HasTags>("sandboxpage"));
|
Filters.Add(new ActivatingFilter<HasTags>("sandboxpage"));
|
||||||
Filters.Add(new ActivatingFilter<HasTags>("blogpost"));
|
Filters.Add(new ActivatingFilter<HasTags>("blogpost"));
|
||||||
|
Filters.Add(new ActivatingFilter<HasTags>("page"));
|
||||||
|
|
||||||
OnLoading<HasTags>((context, ht) => {
|
OnLoading<HasTags>((context, ht) => {
|
||||||
HasTags tags = context.ContentItem.As<HasTags>();
|
HasTags tags = context.ContentItem.As<HasTags>();
|
||||||
|
|||||||
Reference in New Issue
Block a user