mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-09-23 12:53:33 +08:00
- 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:
@@ -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");
|
||||
|
Reference in New Issue
Block a user