Import handlers for navigation,blogs,widgets,layers and deferred publishing/archiving types.

--HG--
branch : dev
This commit is contained in:
Suha Can
2011-03-16 10:32:22 -07:00
parent 527c8612f0
commit bafbf18e27
10 changed files with 134 additions and 4 deletions

View File

@@ -84,6 +84,13 @@ namespace Orchard.PublishLater.Drivers {
() => shapeHelper.EditorTemplate(TemplateName: TemplateName, Model: model, Prefix: Prefix));
}
protected override void Importing(PublishLaterPart part, ImportContentContext context) {
var scheduledUtc = context.Attribute(part.PartDefinition.Name, "ScheduledPublishUtc");
if (scheduledUtc != null) {
part.ScheduledPublishUtc.Value = XmlConvert.ToDateTime(scheduledUtc, XmlDateTimeSerializationMode.Utc);
}
}
protected override void Exporting(PublishLaterPart part, ExportContentContext context) {
var scheduled = part.ScheduledPublishUtc.Value;
if (scheduled != null) {