Alt-properties on images

Vote:
 

Hello!

Since editors can add their own descriptions / alt-properties to images or pdf's that they upload to ImageVault, is it possible to fetch these and make them searchable from the regular site, as meta tags? Or are these properties only for internal use within ImageVault?

Lets say my norwegian editor wants to an image called Car 1, that is used on several other languages on the site. Is it possible to have him edit the image and in the custom field "NorwegianName" add the name for the car in norwegian, have him add the image to the page and then have the norwegian visitors be able to search for Car 1 in norwegian and have it displayed?

Thanks!

#85069
Apr 14, 2014 11:38
Vote:
 

Hello Robin!

The media information you refer to is what we call Metadata in ImageVault.

Metadata is fully supported by the API and is very easy to retrieve, here is a code snippet on how to retrieve the value of a specific metadata called "Headline" for a media file. (this is a console application but the concept would be the same on a web page; the ID can be found on the ImageVault property)

// Load a specific media,
// make sure to include metadata.
var client = ClientFactory.GetSdkClient();
var res = client.Load<MediaItem>(1170).Include(x => x.Metadata).FirstOrDefault();

// Get a specific metadata value 
var myMetadata = res.Metadata.Find(x => x.Name == "Headline");

Console.WriteLine("Headline metadata value is: " + myMetadata.Value);

    

You can find more examples on querying media and Metadata in the c# examples section on http://imagevault.se/doc.

Best regards,

Robert

#85112
Apr 15, 2014 15:55
Vote:
 

Thanks Robert! 

#85126
Apr 16, 2014 9:31
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.