mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-12-17 18:01:19 +08:00
Merge branch '1.10.x' into dev
This commit is contained in:
@@ -392,7 +392,7 @@
|
|||||||
<Output TaskParameter="Lines" ItemName="ProfilingSetupCommands"/>
|
<Output TaskParameter="Lines" ItemName="ProfilingSetupCommands"/>
|
||||||
</ReadLinesFromFile>
|
</ReadLinesFromFile>
|
||||||
|
|
||||||
<Exec Command="$(ProfilingFolder)\bin\Orchard.exe %(ProfilingSetupCommands.Identity)" WorkingDirectory="$(ProfilingFolder)"/>
|
<Exec Command=""$(ProfilingFolder)\bin\Orchard.exe" %(ProfilingSetupCommands.Identity)" WorkingDirectory="$(ProfilingFolder)"/>
|
||||||
</Target>
|
</Target>
|
||||||
|
|
||||||
<!-- Gallery Packaging -->
|
<!-- Gallery Packaging -->
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
setup /SiteName:Profiling /AdminUsername:admin /AdminPassword:profiling-secret /DatabaseProvider:SQLServer /DatabaseConnectionString:"Data Source=.;Initial Catalog=Orchard;Integrated Security=True" /EnabledFeatures:Profiling,Orchard.Framework,Common,Containers,Contents,Dashboard,Feeds,Navigation,Scheduling,Settings,Shapes,Title,PackagingServices,Gallery,Orchard.PublishLater,Orchard.Blogs,Orchard.Comments,Orchard.ContentTypes,Orchard.Resources,Orchard.Lists,Orchard.MediaLibrary,Orchard.ContentPicker,Orchard.MediaPicker,Orchard.Modules,Orchard.Packaging,Orchard.Pages,Orchard.Recipes,Orchard.Roles,Orchard.Tags,Orchard.Themes,Orchard.Users,Orchard.Scripting,Orchard.Scripting.Lightweight,Orchard.Widgets,TinyMce,TheThemeMachine,Orchard.Tokens,Orchard.Alias,Orchard.Autoroute
|
setup /SiteName:Profiling /AdminUsername:admin /AdminPassword:profiling-secret /DatabaseProvider:SQLServer /DatabaseConnectionString:"Data Source=.;Initial Catalog=Orchard;Integrated Security=True" /EnabledFeatures:Profiling,Orchard.Framework,Common,Containers,Contents,Dashboard,Feeds,Navigation,Scheduling,Settings,Shapes,Title,PackagingServices,Gallery,Orchard.PublishLater,Orchard.Blogs,Orchard.Comments,Orchard.ContentTypes,Orchard.Resources,Orchard.Lists,Orchard.MediaLibrary,Orchard.ContentPicker,Orchard.MediaPicker,Orchard.Modules,Orchard.Packaging,Orchard.Pages,Orchard.Recipes,Orchard.Roles,Orchard.Tags,Orchard.Themes,Orchard.Users,Orchard.Scripting,Orchard.Scripting.Lightweight,Orchard.Widgets,TinyMce,TheThemeMachine,Orchard.Tokens,Orchard.Alias,Orchard.Autoroute
|
||||||
@@ -99,10 +99,6 @@ namespace Orchard.Pages.Commands {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Homepage) {
|
|
||||||
_homeAliasService.PublishHomeAlias(page);
|
|
||||||
}
|
|
||||||
|
|
||||||
var layout = default(string);
|
var layout = default(string);
|
||||||
if (UseWelcomeText) {
|
if (UseWelcomeText) {
|
||||||
var text = T(
|
var text = T(
|
||||||
@@ -196,7 +192,7 @@ Aliquam vel sem nibh. Suspendisse vel condimentum tellus.</p>").Text;
|
|||||||
}
|
}
|
||||||
|
|
||||||
// (Layout) Hackish way to access the LayoutPart on the page without having to declare a dependency on Orchard.Layouts.
|
// (Layout) Hackish way to access the LayoutPart on the page without having to declare a dependency on Orchard.Layouts.
|
||||||
var layoutPart = ((dynamic) page).LayoutPart;
|
var layoutPart = ((dynamic)page).LayoutPart;
|
||||||
var bodyPart = page.As<BodyPart>();
|
var bodyPart = page.As<BodyPart>();
|
||||||
|
|
||||||
if (bodyPart != null)
|
if (bodyPart != null)
|
||||||
@@ -209,6 +205,10 @@ Aliquam vel sem nibh. Suspendisse vel condimentum tellus.</p>").Text;
|
|||||||
|
|
||||||
if (Publish) {
|
if (Publish) {
|
||||||
_contentManager.Publish(page);
|
_contentManager.Publish(page);
|
||||||
|
|
||||||
|
if (Homepage) {
|
||||||
|
_homeAliasService.PublishHomeAlias(page);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Context.Output.WriteLine(T("Page created successfully.").Text);
|
Context.Output.WriteLine(T("Page created successfully.").Text);
|
||||||
|
|||||||
Reference in New Issue
Block a user