Image Linking Pages

Vote:
 

In 'Show File Summary' in the right click menu of an image in the file manager you can view the 'Linking Pages' i.e. where the image is being used on the site. Is there a way I can access this list of pages in code?

#39250
May 06, 2010 18:12
Vote:
 

Found it - DataAbstraction.SoftLink :

EPiServer.Web.Hosting.UnifiedFile f = System.Web.Hosting.HostingEnvironment.VirtualPathProvider.GetFile(filename) as EPiServer.Web.Hosting.UnifiedFile;

EPiServer.DataAbstraction.SoftLinkCollection filecollection = EPiServer.DataAbstraction.SoftLink.Load(f);

foreach (EPiServer.DataAbstraction.SoftLink file in filecollection) {
PageReference ref = new PageReference();
ref = file.OwnerPageLink;

}
#39267
May 07, 2010 10:29
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* 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.