From bb5d8d5ca3b2ce72e38b7fa9a672401f8c90d6e0 Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Thu, 15 Oct 2009 22:42:45 +0000 Subject: [PATCH] MINOR site report for page with broken links (from r85018) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@89218 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- code/SideReport.php | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/code/SideReport.php b/code/SideReport.php index 59834c64..50f40dc8 100755 --- a/code/SideReport.php +++ b/code/SideReport.php @@ -106,6 +106,25 @@ class SideReport_RecentlyEdited extends SideReport { } } +/** + * Content side-report listing pages with broken links + * @package cms + * @subpackage content + */ +class SideReport_BrokenLinks extends SideReport { + function title() { + return _t('SideReport.BROKENLINKS',"Pages with broken links"); + } + function records() { + return DataObject::get("SiteTree", "HasBrokenLink = 1"); + } + function fieldsToShow() { + return array( + "Title" => array("NestedTitle", array("2")), + ); + } +} + class SideReport_ToDo extends SideReport { function title() { return _t('SideReport.TODO',"To do");