mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 03:25:23 +08:00
Content manager assigning values to definition properties
DefaultContentManager now takes a dependency on IContentDefinitionManager ContentItem.TypeDefinition assigned to ContentTypeDefinition instance when creating ContentPart.TypePartDefinition assigned to ContentTypeDefinition.Part instance as added Empty definition instances are created as code-only types and parts are created --HG-- branch : dev
This commit is contained in:
@@ -7,6 +7,7 @@ using Orchard.Commands;
|
||||
using Orchard.Commands.Builtin;
|
||||
using Orchard.ContentManagement;
|
||||
using Orchard.ContentManagement.Handlers;
|
||||
using Orchard.ContentManagement.MetaData.Builders;
|
||||
using Orchard.Data.Builders;
|
||||
using Orchard.Environment.Extensions;
|
||||
using Orchard.Localization;
|
||||
@@ -90,7 +91,8 @@ namespace Orchard.Setup {
|
||||
|
||||
class SafeModeSiteService : ISiteService {
|
||||
public ISite GetSiteSettings() {
|
||||
var site = new ContentItemBuilder("site")
|
||||
var siteType = new ContentTypeDefinitionBuilder().Named("site").Build();
|
||||
var site = new ContentItemBuilder(siteType)
|
||||
.Weld<SafeModeSite>()
|
||||
.Build();
|
||||
|
||||
|
Reference in New Issue
Block a user