AI OnAI Off
Hi
Yes, you can do so by using the SoftLink class. Use SoftLink.Load and you should get a collection of softlinks where you can see what pages are referencing that file.
Regards
Per Gunsarfs
EPiServer development team
Hi,
That's really smooth, thanks a lot, Per.
Made my code cleaner and faster, since my initial solution was to fetch a PageDataCollection and loop through it .
// Regards, Torbjörn
Hi,
I'm doing a search for files in Documents, and wonder if it's possible to check if a found file is referenced by a Page, and of course, which page it is. When you try to delete or move a file in the File Manager you get a warning if the file is referenced by a Page, so I suppose it could be done in code-behind?
// Kind regards, Torbjörn