More in this section
Forums / Sitefinity SDK / Accessing Custom Meta Field Data

Accessing Custom Meta Field Data

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
2 posts, 0 answered
  1. Pavliks
    Pavliks 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. Pavliks
    Pavliks 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