Search for pages with broken links.

Vote:
 
We all know that our dear users sometimes reads: "Are you really sure you want to delete this!?" as... "Just click ok again to continue and let the technitians worry about any future problems". I've been asked if there's any way to create a page that lists pages that have broken EPi-links in them. I was thinking of using something like DataAbstraction.SoftLink.LoadReferencing(PageReference.Empty) but that didn't quite give the results I was looking for. Any Ideas? Regards / Stellan
#13068
Mar 25, 2008 18:35
Vote:
 
Take a look at this blog post from Mats Hellström at EPiServer, sounds like exactly what you're looking for: http://epicms.blogspot.com/2007/03/check-your-external-links.html Best regards Martin
#15342
Mar 25, 2008 18:47
Vote:
 
Thank you. Though this is not what I was looking for, it was clearly a good plugin. I'm more interesting in how to list EPi-pages that have links to other EPi-pages that have been deleted from the trashbin. Anyone else got an idea? //S
#15343
Mar 25, 2008 18:47
Vote:
 
Oh, And I forgot to mention, we're still using EPi 4.51 //S
#15344
Mar 25, 2008 18:47
Vote:
 
Realized the second I clicked Publish that I might have misunderstood your request just a little bit, that you're more interested in internal links than in external links :-) But perhaps that module can act as a starting point in your work? /Martin
#15345
Mar 25, 2008 18:47
Vote:
 
Maybe this could give some inspiration. http://epicms.blogspot.com/2007/03/check-your-external-links.html Even though it's about external links the same thing could be done on internal as well. Take each URL create a PageReference, use it to load a PageData object and handle your exceptions to find out if the page exists. /HAXEN
#15346
Mar 25, 2008 18:47