public void SetSingleFileField(Telerik.Sitefinity.Libraries.Model.Document relatedItem) { this.SetRelatedItem(FullItem.SINGLEFILEFIELD_FIELD_NAME, relatedItem); }
public void AddMultipleFileField(Telerik.Sitefinity.Libraries.Model.Document relatedItem) { this.AddRelatedItem(FullItem.MULTIPLEFILEFIELD_FIELD_NAME, relatedItem); }
private DocumentTreeNode CreateDocNode(Telerik.Sitefinity.Libraries.Model.DocumentLibrary item, Telerik.Sitefinity.Libraries.Model.Document doc) { var docNode = new DocumentTreeNode(); docNode.Title = doc.Title.ToString(); docNode.NavigateUrl = doc.MediaUrl; docNode.Target = this.Target; docNode.Id = item.Id; docNode.ParentId = item.ParentId; docNode.Extension = doc.Extension.Replace(".", "").ToLower(); docNode.IsFolder = false; docNode.ContentCssClass = "sfdownloadTitle"; docNode.CssClass += " sfdownloadFile sf{0}".Arrange(doc.Extension.Replace(".", "").ToLower()); return(docNode); }