Try our conversational search powered by Generative AI!

Image Linking Pages


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?

May 06, 2010 18:12

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;

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.