예제 #1
0
 public void SetSingleFileField(Telerik.Sitefinity.Libraries.Model.Document relatedItem)
 {
     this.SetRelatedItem(FullItem.SINGLEFILEFIELD_FIELD_NAME, relatedItem);
 }
예제 #2
0
 public void AddMultipleFileField(Telerik.Sitefinity.Libraries.Model.Document relatedItem)
 {
     this.AddRelatedItem(FullItem.MULTIPLEFILEFIELD_FIELD_NAME, relatedItem);
 }
예제 #3
0
        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);
        }