mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
Merge
--HG-- branch : 1.x
This commit is contained in:
@@ -12,7 +12,10 @@ namespace Orchard.ContentManagement.MetaData.Services {
|
||||
|
||||
public XElement Export(ContentTypeDefinition typeDefinition) {
|
||||
var typeElement = NewElement(typeDefinition.Name, typeDefinition.Settings);
|
||||
|
||||
if (typeElement.Attribute("DisplayName") == null && typeDefinition.DisplayName != null) {
|
||||
typeElement.Add(new XAttribute("DisplayName", typeDefinition.DisplayName));
|
||||
}
|
||||
|
||||
foreach(var typePart in typeDefinition.Parts) {
|
||||
typeElement.Add(NewElement(typePart.PartDefinition.Name, typePart.Settings));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user