/// <summary> /// Constructor. /// </summary> /// <param name="sfContent">The sf content.</param> public DynamicModel(DynamicContent sfContent) { if (sfContent != null) { //SET PROPERTIES Id = sfContent.Id; OriginalContentId = sfContent.OriginalContentId; Slug = sfContent.UrlName; DateCreated = sfContent.DateCreated; PublicationDate = sfContent.PublicationDate; LastModified = sfContent.LastModified; Status = sfContent.Status; Active = sfContent.Status == ContentLifecycleStatus.Live && sfContent.Visible; Owner = sfContent.Owner; //SET CUSTOM PROPERTIES Title = sfContent.GetTitle(); // Store original content OriginalContent = sfContent; } }