Calling all developers! We invite you to provide your input on Feature Experimentation by completing this brief survey.
Calling all developers! We invite you to provide your input on Feature Experimentation by completing this brief survey.
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