Display FigCaption from Media library

Using Sitecore 6.5, for jpg we want to display a FigCaption in the HTML mark up such as

<figure> <img src="http://placehold.it/350x100" alt="">
    <figcaption>Figcaption content</figcaption>

These are stored in the Sitecore template for jpegs in Exif.Copyright field, but how do we retrieve this in code?

I can access the MediaItem using the code below but that doesn't give me access to Exif.Copyright

MediaItem media = ((ImageField)item.Fields[fieldName]).MediaItem;


You can retrieve the inner item on the media item, and get the field values.

var field = media.InnerItem.Fields["Copyright"]

Need Your Help

Preloading VPAID Flash ads - not possible/allowed? why?

actionscript-3 flash vast video-ads

With VAST complaint video ads, you may get a "nested" VAST (VAST Wrappers), which will eventually yield a MediaFile that is a media that you could preload (e.g. MP4/WebM/flv, etc.).