- Ability to promote cms pages to be homepage.

- New homepage core package with a home controller and routes. Home->Index action calls homepage provider, implemented by pages package.
- New site setting (invisible), which is the currently active homepage provider + a parameter identifies the "item" within the provider.
- Add checkbox to Edit Page form to set the page being edited to be homepage.

--HG--
branch : dev
This commit is contained in:
Suha Can
2010-02-12 15:32:30 -08:00
parent 1b6df7a085
commit c070e8fd20
17 changed files with 183 additions and 4 deletions

View File

@@ -14,7 +14,6 @@ using Orchard.Security;
using Orchard.Settings;
using Orchard.Setup.ViewModels;
using Orchard.Localization;
using Orchard.UI.Navigation;
using Orchard.UI.Notify;
using MenuItem=Orchard.Core.Navigation.Models.MenuItem;
@@ -104,6 +103,7 @@ namespace Orchard.Setup.Controllers {
page.As<HasComments>().CommentsShown = false;
page.As<CommonAspect>().Owner = user;
contentManager.Publish(page);
siteSettings.Record.HomePage = "PagesHomePageProvider;" + page.Id;
// add a menu item for the shiny new home page
var menuItem = contentManager.Create("menuitem");