diff --git a/src/Orchard.Web/Modules/Orchard.Setup/Services/SetupService.cs b/src/Orchard.Web/Modules/Orchard.Setup/Services/SetupService.cs index fe5d7a55c..55f72c3dc 100644 --- a/src/Orchard.Web/Modules/Orchard.Setup/Services/SetupService.cs +++ b/src/Orchard.Web/Modules/Orchard.Setup/Services/SetupService.cs @@ -246,13 +246,13 @@ namespace Orchard.Setup.Services { layerInitializer.CreateDefaultLayers(); // add a layer for the homepage - var homepageLayer = contentManager.Create("Layer"); + var homepageLayer = contentManager.Create("Layer", VersionOptions.Draft); homepageLayer.As().Name = "TheHomepage"; homepageLayer.As().LayerRule = "url \"~/\""; contentManager.Publish(homepageLayer); // and three more for the tripel...really need this elsewhere... - var tripelFirst = contentManager.Create("HtmlWidget"); + var tripelFirst = contentManager.Create("HtmlWidget", VersionOptions.Draft); tripelFirst.As().LayerPart = homepageLayer.As(); tripelFirst.As().Title = T("First Leader Aside").Text; tripelFirst.As().Zone = "TripelFirst"; @@ -260,7 +260,7 @@ namespace Orchard.Setup.Services { tripelFirst.As().Text = "

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur a nibh ut tortor dapibus vestibulum. Aliquam vel sem nibh. Suspendisse vel condimentum tellus.

"; contentManager.Publish(tripelFirst); - var tripelSecond = contentManager.Create("HtmlWidget"); + var tripelSecond = contentManager.Create("HtmlWidget", VersionOptions.Draft); tripelSecond.As().LayerPart = homepageLayer.As(); tripelSecond.As().Title = T("Second Leader Aside").Text; tripelSecond.As().Zone = "TripelSecond"; @@ -268,7 +268,7 @@ namespace Orchard.Setup.Services { tripelSecond.As().Text = "

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur a nibh ut tortor dapibus vestibulum. Aliquam vel sem nibh. Suspendisse vel condimentum tellus.

"; contentManager.Publish(tripelSecond); - var tripelThird = contentManager.Create("HtmlWidget"); + var tripelThird = contentManager.Create("HtmlWidget", VersionOptions.Draft); tripelThird.As().LayerPart = homepageLayer.As(); tripelThird.As().Title = T("Third Leader Aside").Text; tripelThird.As().Zone = "TripelThird"; @@ -278,8 +278,10 @@ namespace Orchard.Setup.Services { } // create a welcome page that's promoted to the home page - var page = contentManager.Create("Page"); + var page = contentManager.Create("Page", VersionOptions.Draft); page.As().Title = T("Welcome to Orchard!").Text; + page.As().Path = ""; + page.As().Slug = ""; page.As().Text = string.Format(CultureInfo.CurrentCulture, "

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 this by going into editing mode and replacing it with whatever you want.

First things first - You’ll probably want to manage your settings and configure Orchard to your liking. After that, you can head over to manage themes to change or install new themes and really make it your own. Once you’re happy with a look and feel, it’s time for some content. You can start creating new custom content types or start with some built-in ones by adding a page, creating a blog or managing your menus.

Finally, Orchard has been designed to be extended. It comes with a few built-in modules such as pages and blogs or themes. If you’re looking to add additional functionality, you can do so by creating your own module or installing a new one that someone has made. Modules are created by other users of Orchard just like you so if you feel up to it, please consider participating. XOXO – The Orchard Team

", page.Id); contentManager.Publish(page);