Data export implementation and export/id handlers for content parts and fields.

--HG--
branch : dev
This commit is contained in:
Suha Can
2011-03-14 17:14:03 -07:00
parent ad16d00a8d
commit 185166bffa
25 changed files with 186 additions and 57 deletions

View File

@@ -1,6 +1,7 @@
using System;
using Orchard.ContentManagement;
using Orchard.ContentManagement.Drivers;
using Orchard.ContentManagement.Handlers;
using Orchard.Core.Common.Services;
using Orchard.Mvc;
using Orchard.PublishLater.Models;
@@ -81,5 +82,9 @@ namespace Orchard.PublishLater.Drivers {
return ContentShape("Parts_PublishLater_Edit",
() => shapeHelper.EditorTemplate(TemplateName: TemplateName, Model: model, Prefix: Prefix));
}
protected override void Exporting(PublishLaterPart part, ExportContentContext context) {
context.Element(part.PartDefinition.Name).SetAttributeValue("ScheduledPublishUtc", part.ScheduledPublishUtc.Value);
}
}
}