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:
Suha Can
2011-02-18 20:23:33 -08:00
parent 5456a508a0
commit a9bd76cb94
2 changed files with 3 additions and 3 deletions

View File

@@ -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);
}
}
}

View File

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