November Happy Hour will be moved to Thursday December 5th.
AI OnAI Off
November Happy Hour will be moved to Thursday December 5th.
Override the SetDefaultValues in your model.
public override void SetDefaultValues(ContentType contentType)
{
base.SetDefaultValues(contentType);
StopPublish = Set your date here
this.ArchiveLink = Set you archivelink here
}
Thanks,
Your response has confirmed the correctness of my thoughts.
Solution:
1) Catch the next event: ServiceLocator.Current.GetInstance<IContentEvents>().PublishingContent
2) Field "StopPublish" changed in the event handler
Hi,
How to set the value to the "Expire date" field in the "Manage Expiration and Archiving" using code.
Еhe second field on this form (Archive to) could override follows:
public override PageReference ArchiveLink { get; set; }
Best regards,
Pavel