London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!
AI OnAI Off
London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!
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