mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
Some progress on converting Core.Contents
--HG-- branch : dev
This commit is contained in:
@@ -198,7 +198,13 @@ namespace Orchard.Core.Contents.Controllers {
|
||||
}
|
||||
|
||||
ActionResult CreatableTypeList() {
|
||||
return View(Shape.Model(Types: GetCreatableTypes()));
|
||||
var list = Shape.List();
|
||||
list.AddRange(GetCreatableTypes());
|
||||
|
||||
var viewModel = Shape.ViewModel()
|
||||
.ContentTypes(list);
|
||||
|
||||
return View("CreatableTypeList", viewModel);
|
||||
}
|
||||
|
||||
public ActionResult Create(string id) {
|
||||
|
||||
Reference in New Issue
Block a user