mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-25 19:17:13 +08:00
Import handlers for navigation,blogs,widgets,layers and deferred publishing/archiving types.
--HG-- branch : dev
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user