mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-09-24 13:33:34 +08:00
Making progress on updating the content manager API fit better with the new dynamic UI composition scheme
- Includes changing display-related implementations (drivers & views) to work with shapes - Editor implementations still on the old template model - Orchard.Blogs is currently using a different display type instead of specifying alterations (for Blog and BlogPost) --HG-- branch : dev
This commit is contained in:
@@ -36,7 +36,7 @@ namespace Orchard.Core.Settings.Controllers {
|
||||
if (!Services.Authorizer.Authorize(Permissions.ManageSettings, T("Not authorized to manage settings")))
|
||||
return new HttpUnauthorizedResult();
|
||||
|
||||
var model = Services.ContentManager.BuildEditorModel(_siteService.GetSiteSettings());
|
||||
var model = Services.ContentManager.BuildEditor(_siteService.GetSiteSettings());
|
||||
|
||||
return View(model);
|
||||
}
|
||||
@@ -47,7 +47,7 @@ namespace Orchard.Core.Settings.Controllers {
|
||||
return new HttpUnauthorizedResult();
|
||||
|
||||
var site = _siteService.GetSiteSettings();
|
||||
var model = Services.ContentManager.UpdateEditorModel(site, this);
|
||||
var model = Services.ContentManager.UpdateEditor(site, this);
|
||||
|
||||
if (!ModelState.IsValid) {
|
||||
Services.TransactionManager.Cancel();
|
||||
|
Reference in New Issue
Block a user