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 -->
|
||||||
|
|||||||
@@ -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