mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-09-23 12:53:33 +08:00
Modifying some export handlers.
--HG-- branch : dev
This commit is contained in:
@@ -37,7 +37,7 @@ namespace Orchard.Core.Common.Drivers {
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected override void Exporting(ContentPart part, TextField field, ExportContentContext context) {
|
protected override void Exporting(ContentPart part, TextField field, ExportContentContext context) {
|
||||||
context.Element(field.FieldDefinition.Name).SetAttributeValue("Text", field.Value);
|
context.Element(field.FieldDefinition.Name + "." + field.Name).SetAttributeValue("Text", field.Value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
@@ -16,7 +16,6 @@ namespace Orchard.Comments.Handlers {
|
|||||||
|
|
||||||
if (part != null) {
|
if (part != null) {
|
||||||
context.Metadata.Identity.Add("Comment.CommentAuthor", part.Record.Author);
|
context.Metadata.Identity.Add("Comment.CommentAuthor", part.Record.Author);
|
||||||
context.Metadata.Identity.Add("Comment.CommentDateUtc", part.Record.CommentDateUtc.ToString());
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user