Im trying to enforce the user to set a DateTime for StopPublish
[Required]
public virtual DateTime EnforceStopPublish
{ get; set; }
public override DateTime? StopPublish
{
get { return EnforceStopPublish; }
}
didn't work, is there another possible way, maybe by an Publishing event? example.
thanks in advance
You could also do it in the SetDefaultValues method. The user will then of course be able to remove or change the stoppublishdate, but that can certanly be ok in a lot of cases.