#20113: Added ContentTypeDefinition to ContentTypePartDefinition.

When we can now access the ContentType and all the parts is contains when editing its Setting.

Work Item: 20113
This commit is contained in:
CSurieux
2014-02-05 20:52:45 +01:00
committed by Nicholas Mayne
parent 34122e6834
commit 8547013d1d
2 changed files with 2 additions and 0 deletions

View File

@@ -50,6 +50,7 @@ namespace Orchard.ContentTypes.Services {
};
foreach (var part in viewModel.Parts) {
part._Definition.ContentTypeDefinition = contentTypeDefinition;
part.Templates = _contentDefinitionEditorEvents.TypePartEditor(part._Definition);
foreach (var field in part.PartDefinition.Fields)
field.Templates = _contentDefinitionEditorEvents.PartFieldEditor(field._Definition);

View File

@@ -12,5 +12,6 @@
public ContentPartDefinition PartDefinition { get; private set; }
public SettingsDictionary Settings { get; private set; }
public ContentTypeDefinition ContentTypeDefinition { get; set; }
}
}