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

Forums / Developing with Sitefinity / Retrieving related images from News item in code

Retrieving related images from News item in code

1 posts, 0 answered
  1. Jeff
    Jeff avatar
    4 posts
    Registered:
    15 Aug 2012
    23 May 2014
    Link to this post

    I have a custom field added to the News module called RelatedImage. It's a related media type, single image. How can I get a link to that image for use in an img tag from my News content item?

    NewsItem news = newsManager.GetNewsItem(new Guid(myguid));

    news.GetValue("RelatedImage") returns null for every piece of News. Is there a different way I should be retrieving that field?

1 posts, 0 answered