November Happy Hour will be moved to Thursday December 5th.
November Happy Hour will be moved to Thursday December 5th.
I would recommend to use a custom class where you define all metadata and formats you would like to retrieve.
public class MyMedia : MediaItem {
[Metadata("Title")] public string Title { get; set; } [ResizeEffect(150,150,ResizeMode.ScaleToFill)] public Thumbnail Thumbnail { get; set; } }
Then I would use this class to retrieve the media based on the selected data in the MediaReferenceList.
var client = ClientFactory.GetSdkClient();
var mediaList = client.Load<MyMedia>(mediaReferenceList.Select(m => m.Id)).ToList();
You can see more examples at
http://imagevault.se/en/documentation/api-documentation/?page=episerverplugin/propertymedialist.html
/Dan
For further questions about ImageVault you can access the ImageVault forum here at episerver world
http://world.episerver.com/Modules/Forum/Pages/Forum.aspx?id=73302&epslanguage=en
You'll get better attention there.
/Dan
When i try to implement the class i get this error message
"cannot access protected constructor 'MetaData' here"
any ideas?
You have to use the following using statements
using ImageVault.Client; using ImageVault.Client.Descriptors; using ImageVault.Client.Descriptors.Effects; using ImageVault.Common.Data;
How can you retrieve MetaData when using the property MediaReferenceList in Episerver CMS 7 MVC