mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-27 04:19:04 +08:00
Creating a feature for RssPart
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
using Orchard.ContentManagement.Drivers;
|
||||
using Orchard.Environment.Extensions;
|
||||
using Orchard.Tokens.Models;
|
||||
|
||||
namespace Orchard.Tokens {
|
||||
namespace Orchard.Tokens.Drivers {
|
||||
[OrchardFeature("Orchard.Tokens.Feeds")]
|
||||
public class RssPartDriver : ContentPartDriver<RssPart> {
|
||||
}
|
||||
}
|
||||
@@ -1,9 +1,11 @@
|
||||
using Orchard.ContentManagement.MetaData;
|
||||
using Orchard.Core.Contents.Extensions;
|
||||
using Orchard.Data.Migration;
|
||||
using Orchard.Environment.Extensions;
|
||||
|
||||
namespace Orchard.Tokens {
|
||||
public class Migrations : DataMigrationImpl {
|
||||
[OrchardFeature("Orchard.Tokens.Feeds")]
|
||||
public class FeedsMigrations : DataMigrationImpl {
|
||||
|
||||
public int Create() {
|
||||
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
using Orchard.ContentManagement;
|
||||
using Orchard.Environment.Extensions;
|
||||
|
||||
namespace Orchard.Tokens.Models {
|
||||
[OrchardFeature("Orchard.Tokens.Feeds")]
|
||||
public class RssPart : ContentPart {
|
||||
}
|
||||
}
|
||||
@@ -10,3 +10,8 @@ Features:
|
||||
Name: Tokens
|
||||
Description: Provides a system for performing string replacements with common site values.
|
||||
Category: Content
|
||||
Orchard.Tokens.Feeds:
|
||||
Name: Tokens
|
||||
Description: Provides a content part to customize RSS fields based on tokens.
|
||||
Category: Content
|
||||
Dependencies: Orchard.Tokens, Feeds
|
||||
@@ -103,7 +103,7 @@
|
||||
<Compile Include="Providers\TextTokens.cs" />
|
||||
<Compile Include="Providers\UserTokens.cs" />
|
||||
<Compile Include="ReplaceOptions.cs" />
|
||||
<Compile Include="RssPartDriver.cs" />
|
||||
<Compile Include="Drivers\RssPartDriver.cs" />
|
||||
<Compile Include="Settings\RssPartSettings.cs" />
|
||||
<Compile Include="TokenDescriptor.cs" />
|
||||
<Compile Include="DescribeContext.cs" />
|
||||
|
||||
@@ -4,10 +4,12 @@ using System.Xml.Linq;
|
||||
using Orchard.ContentManagement;
|
||||
using Orchard.Core.Feeds;
|
||||
using Orchard.Core.Feeds.Models;
|
||||
using Orchard.Environment.Extensions;
|
||||
using Orchard.Tokens.Models;
|
||||
using Orchard.Tokens.Settings;
|
||||
|
||||
namespace Orchard.Tokens.Providers {
|
||||
[OrchardFeature("Orchard.Tokens.Feeds")]
|
||||
public class RssPartFeedItemBuilder : IFeedItemBuilder {
|
||||
private readonly ITokenizer _tokenizer;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user