mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
Simplified recipe step configuration names.
This commit is contained in:
@@ -67,7 +67,7 @@ namespace Orchard.ImportExport.Providers.ExportActions {
|
||||
}
|
||||
|
||||
public override void Configure(ExportActionConfigurationContext context) {
|
||||
var recipeBuilderStepsElement = context.ConfigurationElement.Element("RecipeBuilderSteps");
|
||||
var recipeBuilderStepsElement = context.ConfigurationElement.Element("Steps");
|
||||
if (recipeBuilderStepsElement == null)
|
||||
return;
|
||||
|
||||
|
||||
@@ -135,7 +135,7 @@ namespace Orchard.ImportExport.Providers.ImportActions {
|
||||
ResetSite = context.ConfigurationElement.Attr<bool>("ResetSite");
|
||||
SuperUserPassword = context.ConfigurationElement.Attr("SuperUserPassword");
|
||||
|
||||
var executionStepsElement = context.ConfigurationElement.Element("RecipeExecutionSteps");
|
||||
var executionStepsElement = context.ConfigurationElement.Element("Steps");
|
||||
if (executionStepsElement == null)
|
||||
return;
|
||||
|
||||
|
||||
@@ -62,7 +62,7 @@ namespace Orchard.ImportExport.Recipes.Builders {
|
||||
}
|
||||
|
||||
public override void Configure(RecipeBuilderStepConfigurationContext context) {
|
||||
var steps = (context.ConfigurationElement.Attr("CustomSteps") ?? "").Split(new[] {','}, StringSplitOptions.RemoveEmptyEntries);
|
||||
var steps = (context.ConfigurationElement.Attr("Steps") ?? "").Split(new[] {','}, StringSplitOptions.RemoveEmptyEntries);
|
||||
CustomSteps = steps.ToList();
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using Orchard.ContentManagement;
|
||||
using System.Xml;
|
||||
using Orchard.ContentManagement;
|
||||
using Orchard.Localization;
|
||||
using Orchard.Recipes.Models;
|
||||
using Orchard.Recipes.Services;
|
||||
@@ -59,13 +60,13 @@ namespace Orchard.Recipes.Providers.Builders {
|
||||
}
|
||||
|
||||
public override void Configure(RecipeBuilderStepConfigurationContext context) {
|
||||
RecipeName = context.ConfigurationElement.Attr("RecipeName");
|
||||
RecipeDescription = context.ConfigurationElement.Attr("RecipeDescription");
|
||||
RecipeAuthor = context.ConfigurationElement.Attr("RecipeAuthor");
|
||||
RecipeWebsite = context.ConfigurationElement.Attr("RecipeWebsite");
|
||||
RecipeTags = context.ConfigurationElement.Attr("RecipeTags");
|
||||
RecipeCategory = context.ConfigurationElement.Attr("RecipeCategory");
|
||||
RecipeVersion = context.ConfigurationElement.Attr("RecipeVersion");
|
||||
RecipeName = context.ConfigurationElement.Attr("Name");
|
||||
RecipeDescription = context.ConfigurationElement.Attr("Description");
|
||||
RecipeAuthor = context.ConfigurationElement.Attr("Author");
|
||||
RecipeWebsite = context.ConfigurationElement.Attr("Website");
|
||||
RecipeTags = context.ConfigurationElement.Attr("Tags");
|
||||
RecipeCategory = context.ConfigurationElement.Attr("Category");
|
||||
RecipeVersion = context.ConfigurationElement.Attr("Version");
|
||||
IsSetupRecipe = context.ConfigurationElement.Attr<bool>("IsSetupRecipe");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user