mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
#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:
@@ -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);
|
||||
|
@@ -12,5 +12,6 @@
|
||||
|
||||
public ContentPartDefinition PartDefinition { get; private set; }
|
||||
public SettingsDictionary Settings { get; private set; }
|
||||
public ContentTypeDefinition ContentTypeDefinition { get; set; }
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user