mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-22 03:37:25 +08:00
Adding friendly console message for the page create command.
Changing setup progress text to Cooking Orchard Recipe ... --HG-- branch : recipe
This commit is contained in:
@@ -46,7 +46,7 @@ namespace Orchard.Pages.Commands {
|
||||
[CommandName("page create")]
|
||||
[CommandHelp("page create /Slug:<slug> /Title:<title> /Path:<path> [/Text:<text>] [/Owner:<username>] [/Homepage:true|false] [/Publish:true|false] [/UseWelcomeText:true|false]\r\n\t" + "Creates a new page")]
|
||||
[OrchardSwitches("Slug,Title,Path,Text,Owner,Homepage,Publish,UseWelcomeText")]
|
||||
public string Create() {
|
||||
public void Create() {
|
||||
if (String.IsNullOrEmpty(Owner)) {
|
||||
Owner = _siteService.GetSiteSettings().SuperUser;
|
||||
}
|
||||
@@ -89,7 +89,7 @@ Modules are created by other users of Orchard just like you so if you feel up to
|
||||
_contentManager.Publish(page);
|
||||
}
|
||||
|
||||
return "Page created successfully";
|
||||
Context.Output.WriteLine(T("Page Created successfully.").Text);
|
||||
}
|
||||
}
|
||||
}
|
@@ -69,7 +69,7 @@ if (!Model.DatabaseIsPreconfigured) {
|
||||
<div class="curtain"></div>
|
||||
<div class="curtain-content">
|
||||
<div>
|
||||
<h1>@T("Configuring Orchard...")</h1>
|
||||
<h1>@T("Cooking Orchard Recipe ...")</h1>
|
||||
<p>
|
||||
<img src="@Href("../../content/synchronizing.gif")" alt="" />
|
||||
</p>
|
||||
|
Reference in New Issue
Block a user