Accessing Custom Meta Field Data

Posted by Community Admin on 05-Aug-2018 18:32

Accessing Custom Meta Field Data

All Replies

Posted by Community Admin on 21-Jan-2011 00:00

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

Posted by Community Admin on 21-Jan-2011 00:00

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,

This thread is closed