diff --git a/src/Orchard.Web/Modules/Orchard.Pages/Commands/PageCommands.cs b/src/Orchard.Web/Modules/Orchard.Pages/Commands/PageCommands.cs index db7183324..485f23421 100644 --- a/src/Orchard.Web/Modules/Orchard.Pages/Commands/PageCommands.cs +++ b/src/Orchard.Web/Modules/Orchard.Pages/Commands/PageCommands.cs @@ -1,9 +1,9 @@ using System; +using System.Web; using Orchard.Commands; using Orchard.ContentManagement; using Orchard.ContentManagement.Aspects; using Orchard.ContentPicker.Models; -using Orchard.Core.Common.Models; using Orchard.Core.Navigation.Models; using Orchard.Core.Navigation.Services; using Orchard.Security; @@ -103,10 +103,10 @@ namespace Orchard.Pages.Commands { } } - var text = String.Empty; + var layout = default(string); if (UseWelcomeText) { - text = T( -@"
You've successfully setup your Orchard Site and this is the homepage of your new site. + var text = T( + @"
You've successfully setup your Orchard Site and this is the homepage of your new site. Here are a few things you can look at to get familiar with the application. Once you feel confident you don't need this anymore, you can remove it by going into editing mode @@ -123,18 +123,86 @@ you can do so by creating your own module or by installing one that somebody els Modules are created by other users of Orchard just like you so if you feel up to it, please consider participating.
Thanks for using Orchard – The Orchard Team
", page.Id).Text; + + var asideFirstText = +@"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur a nibh ut tortor dapibus vestibulum. +Aliquam vel sem nibh. Suspendisse vel condimentum tellus.
"; + + var asideSecondText = +@"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur a nibh ut tortor dapibus vestibulum. +Aliquam vel sem nibh. Suspendisse vel condimentum tellus.
"; + + var asideThirdText = +@"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur a nibh ut tortor dapibus vestibulum. +Aliquam vel sem nibh. Suspendisse vel condimentum tellus.
"; + + layout = + "{\"elements\": [{" + + "\"typeName\": \"Orchard.Layouts.Elements.Grid\"," + + "\"elements\": [{" + + "\"typeName\": \"Orchard.Layouts.Elements.Row\"," + + "\"elements\": [{" + + "\"typeName\": \"Orchard.Layouts.Elements.Column\"," + + "\"state\": \"ColumnSpan=12\"," + + "\"elements\": [{" + + "\"typeName\": \"Orchard.Layouts.Elements.Html\"," + + "\"state\": \"Content=" + Encode(text) + "\"" + + "}]" + + "}]" + + "},{" + + "\"typeName\": \"Orchard.Layouts.Elements.Row\"," + + "\"elements\": [{" + + "\"typeName\": \"Orchard.Layouts.Elements.Column\"," + + "\"state\": \"ColumnSpan=4\"," + + "\"elements\": [{" + + "\"typeName\": \"Orchard.Layouts.Elements.Html\"," + + "\"state\": \"Content=" + Encode(asideFirstText) + "\"" + + "}]" + + "},{" + + "\"typeName\": \"Orchard.Layouts.Elements.Column\"," + + "\"state\": \"ColumnSpan=4\"," + + "\"elements\": [{" + + "\"typeName\": \"Orchard.Layouts.Elements.Html\"," + + "\"state\": \"Content=" + Encode(asideSecondText) + "\"" + + "}]" + + "},{" + + "\"typeName\": \"Orchard.Layouts.Elements.Column\"," + + "\"state\": \"ColumnSpan=4\"," + + "\"elements\": [{" + + "\"typeName\": \"Orchard.Layouts.Elements.Html\"," + + "\"state\": \"Content=" + Encode(asideThirdText) + "\"" + + "}]" + + "}]" + + "}]" + + "}]}"; } else { if (!String.IsNullOrEmpty(Text)) { - text = Text; + layout = + "{\"elements\": [" + + "{" + + "\"typeName\": \"Orchard.Layouts.Elements.Html\"," + + "\"state\": \"Content=" + Encode(Text) + "\"" + + "}" + + "]}"; } } - page.As