Find all references to a MediaItem (ImageVault)

Vote:
 

Hello,

I'm planning to make a class that inherits the ImageVault.Common.Data.MediaItem, in order to add additional properties.

Now i'm wondering if it will be possible to query EPiServer's api to find all references to a specific image (that is of my implementation of MediaItem). To goal is to find each page och block that has a reference to the specifik image. In the same way you can get references to content.

repository.GetReferencesToContent(contentLink, false)
Version of EPiServer is 7.11. ImageVault is 4.5.2.


Thanks
/Simon
#155345
Sep 14, 2016 13:27
Vote:
 

For Episerver 7 I would give ContentSoftLinkRepository a stab first and use the path of the file...

http://world.episerver.com/documentation/class-library/?documentId=cms/7/b09e4261-7706-016b-24ac-3e2a47f408e7

Haven't tried it though with ImageVault...

#155350
Sep 14, 2016 14:19
* 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.