mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 09:05:53 +00:00
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
This commit is contained in:
parent
53d735c4f6
commit
bb5d8d5ca3
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user