1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Library Meta Data

Library Meta Data

2 posts, 0 answered
  1. mrbowling
    mrbowling avatar
    15 posts
    Registered:
    24 Apr 2007
    31 Jul 2009
    Link to this post
    I don't know if I am reading this right but according to http://www.sitefinity.com/help/developer-manual/libraries-api-contentmanager.html I can only use these metadata fields with a file in a library
    • Name
    • Width
    • Height
    • Size
    • Extension
    • AlternateText
    • Author
    • Description
    I am biding the library Items to a RadGrid and I want to display the uploaded or modified date and possibly the tags. I don't see them listed in the MetaData fields but I see that they are used in the Download List control but UploadDate or Tags didn't seem to work. Thanks
  2. Dido
    Dido avatar
    149 posts
    Registered:
    24 Sep 2012
    03 Aug 2009
    Link to this post
    Hi mrbowling,

    What you have listed are the meta fields defined for the Libraries module (Images & Documents). You can add more if you want to.

    What dowload list uses are the real IContent properties, rather than the metafields.
    public interface IContent 
       // Methods 
       object GetMetaData(string key); 
       void SetMetaData(string key, object value); 
       int UnreadCommentsCount(string userName); 
     
       // Properties 
       IList Comments { get; } 
       object Content { getset; } 
       DateTime DateCreated { get; } 
       DateTime DateModified { get; } 
       Guid ID { getset; } 
       string ItemInfo { getset; } 
       string Language { getset; } 
       IList<string> Languages { get; } 
       string MimeType { getset; } 
       Guid ParentID { getset; } 
       string ProviderName { get; } 
       ContentStatus Status { getset; } 
       IList Thumbnails { get; } 
       string ThumbnailUrl { get; } 
       string Url { getset; } 
       string UrlWithExtension { get; } 


    If you have more questions, do not hesitate to contact us.

    Best wishes,
    Dido
    the Telerik team

    Instantly find answers to your questions on the newTelerik Support Portal.
    Check out the tipsfor optimizing your support resource searches.
2 posts, 0 answered