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

Rails 3.1 Dependent / Cascading Dropdowns

ruby-on-rails ruby-on-rails-3.1 cascadingdropdown

I am getting to grips with Rails 3.1, and I am hoping that someone can point me in the direction of a Gem that will allow me to use dependent selects on a form (or indicate how this is best done in...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.