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

Forums / Sitefinity SDK / Accessing Custom Meta Field Data

Accessing Custom Meta Field Data

2 posts, 0 answered
  1. NimitV
    NimitV avatar
    68 posts
    Registered:
    06 Apr 2010
    21 Jan 2011
    Link to this post
    Hi,

    I can't seem to find a way to access custom meta fields for an image in a image library, can someone help out with this?

    Thanks,
    Steve
  2. NimitV
    NimitV avatar
    68 posts
    Registered:
    06 Apr 2010
    21 Jan 2011
    Link to this post

    Hi,

    var itm = App.WorkWith().Albums().Where(ni => ni.Title == "MainPageRotatorImages").Get().SingleOrDefault();
    string str = itm.Images.Where(img => img.Id == ImageID).FirstOrDefault().GetValue("TextAlignment").ToString();

    I figured it out. It was the album that I needed not images.

    Thanks,
2 posts, 0 answered