Exemple #1
0
 public static void MarkForFuturePublishing(Workflow.StateChanger changer, ContentItem item, DateTime futureDate)
 {
     if (!item.VersionOf.HasValue)
         item.Published = futureDate;
     else
         item["FuturePublishDate"] = futureDate;
     changer.ChangeTo(item, ContentState.Waiting);
 }